Update outputs.h (#106)

Fix casting -1 to uint8_t.
This commit is contained in:
tomaszduda23 2022-07-17 02:42:45 +09:00 committed by GitHub
parent 1ca3045780
commit 1d0ebfce82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)