Skip to content

Commit 6bfdc2c

Browse files
authored
maybe trivial fix
while installing clang.. try this
1 parent 9890731 commit 6bfdc2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Adafruit_USBD_HID.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ bool Adafruit_USBD_HID::keyboardReport(uint8_t report_id, uint8_t modifier,
177177
bool Adafruit_USBD_HID::keyboardPress(uint8_t report_id, char ch) {
178178
uint8_t keycode[6] = {0};
179179
uint8_t modifier = 0;
180-
uint8_t uch = (uint8_t)ch; // ensure no negative values used as index into array
180+
uint8_t uch = (uint8_t)ch;
181181

182182
if (_ascii2keycode[uch][0])
183183
modifier = KEYBOARD_MODIFIER_LEFTSHIFT;

0 commit comments

Comments
 (0)