Commit 0a68b8dc authored by Marcus Nordenberg's avatar Marcus Nordenberg Committed by Esteban Blanc

Use enums for DelayAction for readability

(cherry picked from commit 97b12eb9da2c0aa27a183623e5ec06da44425a46)
parent e84c5840
......@@ -1351,7 +1351,8 @@ static void cSup_exec(sSupActive* sp)
o->Acked = FALSE;
o->AlarmCheck = FALSE;
o->DelayNoted = TRUE;
if (o->DelayAction == 2) {
if (o->DelayAction == pwr_eSupDelayActionEnum_EmergencyBreak)
{
int prev_rwflag = l.iohp->IOReadWriteFlag;
l.iohp->IOReadWriteFlag = FALSE;
l.nodep->EmergBreakTrue = TRUE;
......
......@@ -149,7 +149,8 @@ int csup_Exec(pwr_tStatus* status, lst_sEntry* lh, pwr_tDeltaTime* next_start,
o->CycleCount++;
} else {
/* Not owner, check stall delay */
if (o->DelayAction == 2) {
if (o->DelayAction == pwr_eSupDelayActionEnum_EmergencyBreak)
{
nextLimit.tv_nsec = o->NextLimit.tv_nsec;
nextLimit.tv_sec = o->NextLimit.tv_sec;
if (time_Dcomp(&nextLimit, NULL) > 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment