From e7c26b3e949a9eaeac07103e0fd2f5ec91a002cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Wed, 1 Mar 2017 23:57:07 +0100 Subject: [PATCH] send code 0x18 on restart --- user/user_main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/user/user_main.c b/user/user_main.c index 06d619c..c3726af 100644 --- a/user/user_main.c +++ b/user/user_main.c @@ -24,6 +24,7 @@ #include "screen.h" #include "routes.h" #include "user_main.h" +#include "uart_driver.h" #ifdef ESPFS_POS CgiUploadFlashDef uploadParams={ @@ -114,6 +115,10 @@ void ICACHE_FLASH_ATTR user_init(void) // The terminal screen screen_init(); + // Print the CANCEL character to indicate the module has restarted + // Critically important for client application if any kind of screen persistence / content re-use is needed + UART_WriteChar(UART0, 24, UART_TIMEOUT_US); // 0x18 - 24 - CAN + info("Listening on UART0, 115200-8-N-1!"); }