use console::get_char in main
This commit is contained in:
parent
628de464a0
commit
ccf5a22f3a
1 changed files with 2 additions and 6 deletions
|
@ -173,15 +173,11 @@ void setup() {
|
||||||
Serial.println(F("Press <enter> to start"));
|
Serial.println(F("Press <enter> to start"));
|
||||||
|
|
||||||
for(;;) {
|
for(;;) {
|
||||||
if (Serial.available()) {
|
int c = cnsl->get_char();
|
||||||
int c = Serial.read();
|
|
||||||
if (c == 13 || c == 10)
|
if (c == 13 || c == 10)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
delay(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
Serial.println(F("Emulation starting!"));
|
Serial.println(F("Emulation starting!"));
|
||||||
|
|
||||||
start_ts = millis();
|
start_ts = millis();
|
||||||
|
|
Loading…
Add table
Reference in a new issue