summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2021-06-21 20:00:32 +0000
committerQMK Bot <hello@qmk.fm>2021-06-21 20:00:32 +0000
commite28d7ab58cbf5b9912a33fbe1b5a3a95d3449bea (patch)
treebdc3d935693faf7c886668db78da4b19b314d0cc /drivers
parent6901411bca0760ceb8acbe1f0c95feaed9d2aaeb (diff)
parenteba3d68394ba7bdd15836c0f4f4bb3c44b4e1f91 (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'drivers')
-rw-r--r--drivers/sensors/adns5050.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/sensors/adns5050.c b/drivers/sensors/adns5050.c
index 3c4f5e258a..e7273977d5 100644
--- a/drivers/sensors/adns5050.c
+++ b/drivers/sensors/adns5050.c
@@ -138,7 +138,7 @@ uint8_t adns_read_reg(uint8_t reg_addr) {
void adns_write_reg(uint8_t reg_addr, uint8_t data) {
adns_cs_select();
- adns_serial_write(reg_addr);
+ adns_serial_write( 0b10000000 | reg_addr );
adns_serial_write(data);
adns_cs_deselect();
}