From 283ef717449a84a65f19efdcfe945c9cb2c00f1f Mon Sep 17 00:00:00 2001 From: Tristan Rowley Date: Tue, 15 Jul 2025 22:03:24 +0100 Subject: [PATCH] remove unneeded code --- src/platforms/rp2040.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/platforms/rp2040.h b/src/platforms/rp2040.h index 16a35ae..eb918c2 100644 --- a/src/platforms/rp2040.h +++ b/src/platforms/rp2040.h @@ -24,9 +24,6 @@ void initTimer(uint32_t init_clock) { } void setTimer(uint32_t us_interval) { - if (Serial) { - Serial.flush(); - } cancel_repeating_timer(&timer); // todo: actually should be -us_interval so that timer is set to start init_clock us after last tick, instead of init_clock us after finished processing last tick! add_repeating_timer_us(us_interval, &handlerISR, NULL, &timer);