Added the `volatile` keyword

This commit is contained in:
jakeg00dwin 2024-09-03 19:08:01 -07:00
parent e2a9101d94
commit 5409058a9a
1 changed files with 1 additions and 1 deletions

View File

@ -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; }