Commit ae75cab
authored
fix(hid-rp): Fix switch pro resetting counter (#385)
* Fix issue with switch pro hid report `reset()` resetting the counter value, which prevented `increment_counter()` from working
* Update switch pro to clear all the report bytes to 0 ensuring subcommand / reply data is zeroed out
* remove additional sets in the reset command so app can do it as necessary
Fixes an issue specifically with switch compatibility (ios/android didnt seem to care) if you wanted to simplify application code by calling `increment_counter`.
* Building and running https://github.com:/finger563/esp-usb-ble-hid with this code and doing longer play session with the switch1 parent 6c906a7 commit ae75cab
1 file changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
192 | 197 | | |
193 | 198 | | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | 199 | | |
198 | 200 | | |
199 | 201 | | |
| |||
202 | 204 | | |
203 | 205 | | |
204 | 206 | | |
205 | | - | |
| 207 | + | |
206 | 208 | | |
207 | 209 | | |
208 | 210 | | |
| |||
0 commit comments