summaryrefslogtreecommitdiff
path: root/hid
diff options
context:
space:
mode:
authortomaszduda23 <[email protected]>2022-07-17 02:42:45 +0900
committerGitHub <[email protected]>2022-07-16 20:42:45 +0300
commit1d0ebfce829e00b6f927ddddf3f3c5ed26991759 (patch)
treedf3f55a0a50a66f047f8964a09ce0f4e047cc4c3 /hid
parent1ca30457802fa14cf2c54685f4608a67eeecd8f1 (diff)
Update outputs.h (#106)
Fix casting -1 to uint8_t.
Diffstat (limited to 'hid')
-rw-r--r--hid/src/outputs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hid/src/outputs.h b/hid/src/outputs.h
index 7c3fb18c..9269778f 100644
--- a/hid/src/outputs.h
+++ b/hid/src/outputs.h
@@ -48,7 +48,7 @@ class Outputs {
_storage = DRIVERS::Factory::makeStorage(DRIVERS::DUMMY);
# endif
- uint8_t outputs = _readOutputs();
+ int outputs = _readOutputs();
if (outputs < 0) {
outputs = 0;
# if defined(HID_WITH_USB) && defined(HID_SET_USB_KBD)