From 6625c5c7879830b7bccaaabfaaf478a0c0551916 Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Tue, 13 Feb 2024 09:29:13 +0100 Subject: [PATCH] code cleanup --- src/raspi_keyer.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/raspi_keyer.cpp b/src/raspi_keyer.cpp index 33f66a4..f560021 100644 --- a/src/raspi_keyer.cpp +++ b/src/raspi_keyer.cpp @@ -8,7 +8,7 @@ namespace { - + } extern const uint LED_PIN = PICO_DEFAULT_LED_PIN; @@ -36,17 +36,13 @@ void setup() int main() { - timer_hw->dbgpause = 0; // fix problem with debug and sleep_ms https://github.com/raspberrypi/pico-sdk/issues/1152#issuecomment-1418248639 + timer_hw->dbgpause = 0; // workaround for problem with debug and sleep_ms + // https://github.com/raspberrypi/pico-sdk/issues/1152#issuecomment-1418248639 setup(); Settings settings{read_settings()}; - // printf("\nIambic mode (loaded): %d\n", static_cast(settings.mode)); - // printf("WPM (loaded): %d\n", settings.wpm); - // printf("Element duration (u_sec): %" PRIu64 "\n", element_duration_us(settings.wpm)); - printf("\n"); - Keyer keyer(settings.wpm, settings.mode); while (true)