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 */ - +