heater_control: hanle no supply state (#219)

This commit is contained in:
Andrey G 2023-03-21 21:20:19 +03:00 committed by GitHub
parent 85e61227ab
commit e9b942df31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -194,7 +194,10 @@ static HeaterState GetNextState(struct heater_state &s, HeaterAllow heaterAllowS
}
break;
case HeaterState::Stopped: break;
case HeaterState::Stopped:
case HeaterState::NoHeaterSupply:
/* nop */
break;
}
return s.heaterState;
@ -337,6 +340,8 @@ const char* describeHeaterState(HeaterState state)
return "ClosedLoop";
case HeaterState::Stopped:
return "Stopped";
case HeaterState::NoHeaterSupply:
return "NoHeaterSupply";
}
return "Unknown";