^E (ESP32)
This commit is contained in:
parent
22b48083ce
commit
bca72bf311
1 changed files with 6 additions and 1 deletions
|
@ -106,10 +106,15 @@ void loop() {
|
||||||
if (Serial.available()) {
|
if (Serial.available()) {
|
||||||
char c = Serial.read();
|
char c = Serial.read();
|
||||||
|
|
||||||
if (c > 0 && c < 127)
|
if (c == 5) {
|
||||||
|
Serial.print(F("Instructions per second: "));
|
||||||
|
Serial.println(icount * 1000.0 / (millis() - start_ts));
|
||||||
|
}
|
||||||
|
else if (c > 0 && c < 127) {
|
||||||
tty_->sendChar(c);
|
tty_->sendChar(c);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (c->step()) {
|
if (c->step()) {
|
||||||
Serial.println(F(""));
|
Serial.println(F(""));
|
||||||
|
|
Loading…
Add table
Reference in a new issue