From 5409058a9aa08b579a496622f71cae5651f59430 Mon Sep 17 00:00:00 2001 From: jakeg00dwin Date: Tue, 3 Sep 2024 19:08:01 -0700 Subject: [PATCH] Added the `volatile` keyword --- src/Relays/Relays.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Relays/Relays.c b/src/Relays/Relays.c index e79accc..22a08e2 100644 --- a/src/Relays/Relays.c +++ b/src/Relays/Relays.c @@ -44,7 +44,7 @@ void Relay_Disable(Relay *relay) { return; } - (*(uint8_t *)relay->output_port) &= ~(1 << (relay->output_pin)); + (*(volatile uint8_t *)relay->output_port) &= ~(1 << (relay->output_pin)); } void Relay_DisableForPowerCycle(Relay *relay) { relay->disabled_fpc = true; }