From 85e7f69c07a7e51ebd0a52335d628506c4d8dcb4 Mon Sep 17 00:00:00 2001 From: jakeg00dwin Date: Sun, 1 Sep 2024 13:20:36 -0700 Subject: [PATCH] removed relay function prototype for toggling state. --- src/Relays/Relays.c | 2 ++ src/Relays/Relays.h | 6 ------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Relays/Relays.c b/src/Relays/Relays.c index b366a88..9141fb7 100644 --- a/src/Relays/Relays.c +++ b/src/Relays/Relays.c @@ -25,4 +25,6 @@ void Relay_Disable(Relay *relay) { (*(uint8_t *)relay->output_port) &= ~(1 << (relay->output_pin)); } + + void Relay_DisableForPowerCycle(Relay *relay) { relay->disabled_fpc = true; } diff --git a/src/Relays/Relays.h b/src/Relays/Relays.h index 136c4c7..2d2809b 100644 --- a/src/Relays/Relays.h +++ b/src/Relays/Relays.h @@ -42,12 +42,6 @@ void Relay_MeasureMakeTime(Relay *relay); */ void Relay_MeasureBreakTime(Relay *relay); -/** - * Changes the current state to the opposite one. - * @param relay A pointer to an Relay stucture instance. - */ -void Relay_ToggleState(Relay *relay); - /** * Enables or activates the relay. If the relay has been disabled * for this power cycle it will do nothing.