Interpret 0 and 1 instead of their ASCII counterparts.
This commit is contained in:
@@ -66,10 +66,10 @@ usb_status_t UsbGenericHidCallback(class_handle_t handle, uint32_t event, void *
|
||||
command = GenericHidBuffer[GenericHidBufferIndex][0];
|
||||
|
||||
switch (command) {
|
||||
case '0':
|
||||
case 0:
|
||||
TEST_RED_ON();
|
||||
break;
|
||||
case '1':
|
||||
case 1:
|
||||
TEST_RED_OFF();
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user