diff --git a/FuegoHeatpumpIR.cpp b/FuegoHeatpumpIR.cpp index 957f34f..8c40010 100644 --- a/FuegoHeatpumpIR.cpp +++ b/FuegoHeatpumpIR.cpp @@ -27,7 +27,7 @@ void FuegoHeatpumpIR::send(IRSender& IR, uint8_t powerModeCmd, uint8_t operating if (powerModeCmd == POWER_OFF) { powerMode = FUEGO_AIRCON1_MODE_OFF; - operatingMode = FUEGO_AIRCON1_MODE_AUTO; + swingVCmd = VDIR_MUP; } switch (operatingModeCmd) @@ -70,6 +70,8 @@ void FuegoHeatpumpIR::send(IRSender& IR, uint8_t powerModeCmd, uint8_t operating switch (swingVCmd) { case VDIR_AUTO: + swingV = FUEGO_AIRCON1_VS_AUTO; + break; case VDIR_SWING: swingV = FUEGO_AIRCON1_VS_SWING; break; diff --git a/FuegoHeatpumpIR.h b/FuegoHeatpumpIR.h index cd69a81..c95ded4 100644 --- a/FuegoHeatpumpIR.h +++ b/FuegoHeatpumpIR.h @@ -27,13 +27,13 @@ #define FUEGO_AIRCON1_FAN2 0x03 #define FUEGO_AIRCON1_FAN3 0x05 -#define FUEGO_AIRCON1_VS_SWING 0x38 // Vertical swing -#define FUEGO_AIRCON1_VS_UP 0x00 -#define FUEGO_AIRCON1_VS_MUP 0x08 +#define FUEGO_AIRCON1_VS_AUTO 0x00 // Vertical swing +#define FUEGO_AIRCON1_VS_UP 0x08 +#define FUEGO_AIRCON1_VS_MUP 0x10 #define FUEGO_AIRCON1_VS_MIDDLE 0x18 #define FUEGO_AIRCON1_VS_MDOWN 0x20 #define FUEGO_AIRCON1_VS_DOWN 0x28 - +#define FUEGO_AIRCON1_VS_SWING 0x38 class FuegoHeatpumpIR : public HeatpumpIR {