From 09c89ea048e1056e10a54544128e7e1d5e5dda8f Mon Sep 17 00:00:00 2001 From: Rei Vilo Date: Tue, 2 Jun 2020 18:49:29 +0200 Subject: [PATCH] Fix for issue #56 --- build/shared/examples/10.MultiTasking/Monitor/Monitor.ino | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build/shared/examples/10.MultiTasking/Monitor/Monitor.ino b/build/shared/examples/10.MultiTasking/Monitor/Monitor.ino index fe75e68eb17..c4ee2b9330e 100644 --- a/build/shared/examples/10.MultiTasking/Monitor/Monitor.ino +++ b/build/shared/examples/10.MultiTasking/Monitor/Monitor.ino @@ -132,6 +132,7 @@ void mon_setup(void) { Serial.begin(9600); Serial.println("Welcome! This is the Serial debug console."); + Serial.println("Type help for list of commands"); } #define UP_ARROW 0x0b /* ctrl K */ @@ -152,6 +153,7 @@ void mon_loop() int escape_index = 0; while (true) { + if (!Serial.available()) continue; char c = Serial.read(); if (escape_index) { @@ -861,4 +863,4 @@ static int consoleHandler_pri(const char *line) } #endif /* PRI_CMD */ - +