change operatingMode to AUTO

based on https://github.com/ToniA/arduino-heatpumpir/issues/71#issuecomment-506924875
I realized that the off command is hardcoded to HEAT and not all AUX has HEAT mode. Changing to AUTO should do the work.
This commit is contained in:
Rasyid Ridho 2019-07-04 15:53:33 +07:00 committed by GitHub
parent d707c6f7c6
commit 4dc550d617
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ void AUXHeatpumpIR::send(IRSender& IR, uint8_t powerModeCmd, uint8_t operatingMo
// Sensible defaults for the heat pump mode
uint8_t powerMode = AUX_AIRCON1_MODE_ON;
uint8_t operatingMode = AUX_AIRCON1_MODE_HEAT;
uint8_t operatingMode = AUX_AIRCON1_MODE_AUTO;
uint8_t fanSpeed = AUX_AIRCON1_FAN_AUTO;
uint8_t temperature = 23;
uint8_t swingV = AUX_AIRCON1_VDIR_MANUAL;
@ -130,4 +130,4 @@ void AUXHeatpumpIR::sendAUX(IRSender& IR, uint8_t powerMode, uint8_t operatingMo
// End mark
IR.mark(AUX_AIRCON1_BIT_MARK);
IR.space(0);
}
}