diff --git a/firmware/main.c b/firmware/main.c index 0a3d165..b4b113b 100755 --- a/firmware/main.c +++ b/firmware/main.c @@ -265,7 +265,9 @@ void CDC1_Task(void) for (uint16_t i = 0; i < DataLength; i++) { // process the received data and descide to do an action + LED0_ON; cc_processData(Buffer[i]); + LED0_OFF; } } @@ -283,6 +285,8 @@ void USB_serialStreamWriteC(char *data, uint16_t len) if (data != NULL && len > 0 && LineEncoding1.BaudRateBPS) { + LED1_ON; + /* Select the Serial Tx Endpoint */ Endpoint_SelectEndpoint(CDC1_TX_EPADDR); @@ -297,6 +301,8 @@ void USB_serialStreamWriteC(char *data, uint16_t len) /* Send an empty packet to ensure that the host does not buffer data sent to it */ Endpoint_ClearIN(); + + LED1_OFF; } }