From fa178071442be7c9b61e5fc03045b4b12b2935bd Mon Sep 17 00:00:00 2001 From: "Morgan 'ARR\\!' Allen" Date: Sun, 30 Jun 2019 14:52:28 -0700 Subject: [PATCH] printing char doesnt work for make monitor --- test/lora32/components/esp32-uart-cmdr/main/esp32_uart_cmdr.c | 2 +- test/lora32/main/main.c | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) 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"); } }