Move interuppt functions to RAM

This commit is contained in:
Daniel Kluge 2023-05-24 15:05:20 +02:00
parent 345412c33b
commit ab48f69b6c

View File

@ -82,7 +82,7 @@ char findCurrentArrPin() {
} }
// Set the next self drive pin // Set the next self drive pin
void nextSelfDrivePin() { FASTRUN void nextSelfDrivePin() {
// Set the current pin to high // Set the current pin to high
digitalWriteFast(self_drive_pins[curr_self_drive_pin], HIGH); digitalWriteFast(self_drive_pins[curr_self_drive_pin], HIGH);
// Set the next pin // Set the next pin
@ -90,7 +90,7 @@ void nextSelfDrivePin() {
} }
// Interrupt for power supply check // Interrupt for power supply check
void powerStateChanged() { FASTRUN void powerStateChanged() {
unsigned char state = digitalReadFast(POWER_SUPPLY_CHECK_PIN); unsigned char state = digitalReadFast(POWER_SUPPLY_CHECK_PIN);
// ! inverted // ! inverted
if (state == LOW) { if (state == LOW) {