is this the right byte?
This commit is contained in:
parent
943c5ae00c
commit
2fa46bf62f
1 changed files with 2 additions and 2 deletions
|
|
@ -400,8 +400,8 @@ static int send_data(int fd, logic_t *const logic) {
|
|||
(gs.l3 ? 0x40 : 0x00) |
|
||||
(gs.r3 ? 0x80 : 0x00);
|
||||
|
||||
buf[10] = (gs.center ? 0x01 : 0x00);
|
||||
buf[11] = (gs.lfn ? 0x10 : 0x00) | (gs.rfn ? 0x20 : 0x00);
|
||||
buf[10] = (gs.lfn ? 0x10 : 0x00) | (gs.rfn ? 0x20 : 0x00) | (gs.center ? 0x01 : 0x00);
|
||||
//buf[11] = ;
|
||||
|
||||
//buf[12] = 0x20; // [12] battery level | this is called sensor_temparature in the kernel driver but is never used...
|
||||
memcpy(&buf[16], &g_x, sizeof(int16_t));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue