From 0fe058ee6abd2525e8223aadf00021c76b194eac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Ha=C3=9Fel?= Date: Mon, 9 Jan 2023 10:29:41 +0100 Subject: [PATCH] serial 'a' (STARFIELD) shift +10 --- src/mode/Pong/Pong.h | 1 - src/serial.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mode/Pong/Pong.h b/src/mode/Pong/Pong.h index 06d3170..5db93ad 100644 --- a/src/mode/Pong/Pong.h +++ b/src/mode/Pong/Pong.h @@ -43,7 +43,6 @@ public: protected: void tick(uint8_t index, milliseconds_t milliseconds) override { - Serial.printf("tick(%lu)\n", milliseconds); switch (status) { case SCORE: timeout -= milliseconds; diff --git a/src/serial.cpp b/src/serial.cpp index 6dd0116..ce9df82 100644 --- a/src/serial.cpp +++ b/src/serial.cpp @@ -26,7 +26,7 @@ void serial_loop() { setMode((ModeId) (input - '0')); break; case 'a': - setMode((ModeId) (input - 'a')); + setMode((ModeId) (input - 'a' + 10)); break; case '+': setBrightness(display.getBrightness() + 10);