code cleanup

This commit is contained in:
Martin Brodbeck 2024-02-13 09:29:13 +01:00
parent a877a2f81f
commit 6625c5c787

View file

@ -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<int>(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)