added change wind dir debug

This commit is contained in:
strawmanbobi
2026-01-13 09:18:16 +08:00
parent 16855d26a3
commit 2cad5e71a2

View File

@@ -215,7 +215,6 @@ static INT8 decode_as_ac(char *file_name)
case 11:
if (ac_status->ac_wind_dir == AC_SWING_OFF) {
ac_status->change_wind_direction = 1;
}
need_control = TRUE;
break;
@@ -227,12 +226,14 @@ static INT8 decode_as_ac(char *file_name)
if (TRUE == op_match && TRUE == need_control)
{
printf("switch AC to power = %d, mode = %d, temp = %d, speed = %d, swing = %d with key_code = %d\n",
printf("switch AC to power = %d, mode = %d, temp = %d, speed = %d, swing = %d, change_wind_dir = %d,"
" with key_code = %d\n",
ac_status->ac_power,
ac_status->ac_mode,
ac_status->ac_temp,
ac_status->ac_wind_speed,
ac_status->ac_wind_dir,
ac_status->change_wind_direction,
key_code);
length = ir_decode(key_code, user_data, ac_status);
printf("\n === binary decoded : %d\n", length);