fixed AC mode verification bug

This commit is contained in:
strawmanbobi
2022-07-12 09:17:01 +08:00
parent e164e1ba84
commit 0b1054c0c8

View File

@@ -500,7 +500,7 @@ static BOOL validate_ac_status(t_remote_ac_status* ac_status, BOOL change_wind_d
{ {
return FALSE; return FALSE;
} }
if (ac_status->ac_mode < AC_MODE_COOL || ac_status->ac_mode >= AC_POWER_MAX) if (ac_status->ac_mode < AC_MODE_COOL || ac_status->ac_mode >= AC_MODE_MAX)
{ {
return FALSE; return FALSE;
} }