Interpret 0 and 1 instead of their ASCII counterparts.

This commit is contained in:
László Monda
2016-09-26 01:55:58 +02:00
parent 962d65589c
commit 7f002cf2b4

View File

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