fixed bug that checked for negative length of unsigned int
@@ -249,7 +249,7 @@ int usart_messages_waiting(int handle) {
}
static void *serial_rx_thread(void *vptr_args) {
- unsigned int length;
+ int length;
uint8_t * cbuf = malloc(100000);
// Receive loop
