From ab48f69b6cfcd56185d8329057d13299c04cac99 Mon Sep 17 00:00:00 2001 From: Daniel Kluge Date: Wed, 24 May 2023 15:05:20 +0200 Subject: [PATCH] Move interuppt functions to RAM --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 1e2c406..675b1d6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -82,7 +82,7 @@ char findCurrentArrPin() { } // Set the next self drive pin -void nextSelfDrivePin() { +FASTRUN void nextSelfDrivePin() { // Set the current pin to high digitalWriteFast(self_drive_pins[curr_self_drive_pin], HIGH); // Set the next pin @@ -90,7 +90,7 @@ void nextSelfDrivePin() { } // Interrupt for power supply check -void powerStateChanged() { +FASTRUN void powerStateChanged() { unsigned char state = digitalReadFast(POWER_SUPPLY_CHECK_PIN); // ! inverted if (state == LOW) {