Skip to content

Commit 561450a

Browse files
committed
one bit error fixed
1 parent 5c73ce7 commit 561450a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/gatt_svr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ static int gatt_svr_chr_hid(uint16_t conn_handle, uint16_t attr_handle,
202202
//01 == hid host is exiting the suspend state
203203
//nur das erste bit betrachten
204204
//unter ios wird der suspend state schon geändert wenn man das gerät nur umdreht und das display noch nicht eingeschalten hat :)
205-
int wakeupInfo = *test & 0b01;
205+
int wakeupInfo = *test & 0b11;
206206
ESP_LOGW("ASDF", "WRITE TO CONTROL POINT %d",wakeupInfo);
207207
return 0;
208208
}

0 commit comments

Comments
 (0)