From 2cbfde0484f7f616f22b49f328dce6b7f835dcfa Mon Sep 17 00:00:00 2001 From: Pontus Oldberg Date: Wed, 10 Jul 2024 16:10:35 +0200 Subject: [PATCH] Removed irq debug code. --- CommandStation-EX.ino | 2 -- DCCWaveform.cpp | 3 --- 2 files changed, 5 deletions(-) diff --git a/CommandStation-EX.ino b/CommandStation-EX.ino index 6b0ea71..77e8f40 100644 --- a/CommandStation-EX.ino +++ b/CommandStation-EX.ino @@ -69,8 +69,6 @@ void setup() { // The main sketch has responsibilities during setup() - pinMode(LED_BUILTIN, OUTPUT); - digitalWrite(LED_BUILTIN, LOW); // Responsibility 1: Start the usb connection for diagnostics // This is normally Serial but uses SerialUSB on a SAMD processor diff --git a/DCCWaveform.cpp b/DCCWaveform.cpp index 3479921..53cab96 100644 --- a/DCCWaveform.cpp +++ b/DCCWaveform.cpp @@ -71,10 +71,7 @@ void DCCWaveform::loop() { #pragma GCC push_options #pragma GCC optimize ("-O3") -static uint32_t blinker = 0; void DCCWaveform::interruptHandler() { - if (!(blinker++ % 25000)) - digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN)); // call the timer edge sensitive actions for progtrack and maintrack // member functions would be cleaner but have more overhead byte sigMain=signalTransform[mainTrack.state];