Add condition to handle configuration changed.

This commit is contained in:
Phat Nguyen
2024-05-13 19:00:34 +07:00
parent 5cb838af29
commit 4612f4b793
2 changed files with 39 additions and 30 deletions

View File

@ -394,6 +394,9 @@ StateMachine::~StateMachine() {}
void StateMachine::displayHandle(AgStateMachineState state) {
// Ignore handle if not ONE_INDOOR board
if (!ag->isOne()) {
if (state == AgStateMachineCo2Calibration) {
co2Calibration();
}
return;
}