Skip to content

Commit fc72b66

Browse files
authored
Update LEDKeyboardController.ino
1 parent 2d4f06e commit fc72b66

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/Portenta H7 as a USB Host/LEDKeyboardController/LEDKeyboardController.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ static int process_key(tusbh_ep_info_t* ep, const uint8_t* key);
4040

4141
static const tusbh_boot_key_class_t cls_boot_key = {
4242
.backend = &tusbh_boot_keyboard_backend,
43-
//.on_key = process_key
43+
.on_key = process_key
4444
};
4545

4646
static const tusbh_boot_mouse_class_t cls_boot_mouse = {
@@ -171,6 +171,7 @@ static int process_key(tusbh_ep_info_t* ep, const uint8_t* keys)
171171
else
172172
digitalWrite(LEDB, HIGH);
173173
}
174+
174175
} else if (key >= KEY_1 && key <= KEY_0) {
175176
if (modify & MOD_SHIFT) {
176177
stdin_recvchar(ksign[key - KEY_1]);

0 commit comments

Comments
 (0)