summaryrefslogtreecommitdiffstats
path: root/drivers/sensors/adns5050.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/sensors/adns5050.c')
-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();
}