diff --git a/test/lora32/components/esp32-uart-cmdr/main/esp32_uart_cmdr.c b/test/lora32/components/esp32-uart-cmdr/main/esp32_uart_cmdr.c index e6df398..1103e0c 100644 --- a/test/lora32/components/esp32-uart-cmdr/main/esp32_uart_cmdr.c +++ b/test/lora32/components/esp32-uart-cmdr/main/esp32_uart_cmdr.c @@ -29,7 +29,7 @@ static void uart_event_task(void *pvParameters) { size += event.size; - if(dtmp[size - 1] == '\n') { + if(dtmp[size - 1] == '\n' || dtmp[size - 1] == '\r') { //uart_write_bytes(UART_NUM_0, (const char*) dtmp, size); bzero(dtmp, RD_BUF_SIZE); diff --git a/test/lora32/main/main.c b/test/lora32/main/main.c index 67dddfb..01c7ca3 100644 --- a/test/lora32/main/main.c +++ b/test/lora32/main/main.c @@ -104,10 +104,6 @@ static void handle_lora_receive(uint8_t *data, uint8_t size) { printf("%02X ", data[i + j]); } - for(j = 0; j < 16; j++) { - printf("%s", (char*)data[i + j]); - } - printf("\n"); } }