Added function that allows a "soft" reset of the disabled pins.

This commit is contained in:
jakeg00dwin 2024-09-23 13:12:31 -07:00
parent 1b615155ff
commit 1aca4d7876
2 changed files with 14 additions and 0 deletions

View File

@ -94,3 +94,12 @@ void Load_HandleLoadPortB(uint8_t adc_pin, uint8_t out_pin)
RegEdit_ClearBit((void *) &PORTB.OUT, out_pin);
}
}
void Load_SoftResetDisabledLoads()
{
for(int i = 0; i < 8; i++){
porta_disabled[i] = false;
portb_disabled[i] = false;
}
}

View File

@ -51,5 +51,10 @@ void Load_HandleLoadPortA(uint8_t adc_pin, uint8_t out_pin);
void Load_HandleLoadPortB(uint8_t adc_pin, uint8_t out_pin);
/**
* @brief Resets the disabled array state.
*/
void Load_SoftResetDisabledLoads();
#endif /* LOAD_H */