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,13 +173,9 @@ void setup() {
|
|||
Serial.println(F("Press <enter> to start"));
|
||||
|
||||
for(;;) {
|
||||
if (Serial.available()) {
|
||||
int c = Serial.read();
|
||||
if (c == 13 || c == 10)
|
||||
int c = cnsl->get_char();
|
||||
if (c == 13 || c == 10)
|
||||
break;
|
||||
}
|
||||
|
||||
delay(1);
|
||||
}
|
||||
|
||||
Serial.println(F("Emulation starting!"));
|
||||
|
|
Loading…
Add table
Reference in a new issue