Added the `volatile` keyword
This commit is contained in:
parent
e2a9101d94
commit
5409058a9a
|
@ -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; }
|
||||
|
|
Loading…
Reference in New Issue