arduino-heatpumpir
arduino-heatpumpir copied to clipboard
Correct swing commands for Hitachi models
There are a few minor mistakes in HitachiHeatpumpIR.cpp that prevent the vertical and horizontal swing functions from operating. The corrected code block is below, starting from line 83:
switch (swingVcmd)
{
case VDIR_AUTO:
swingV = HITACHI_AIRCON1_VDIR_AUTO;
break;
case VDIR_SWING:
swingV = HITACHI_AIRCON1_VDIR_SWING;
break;
}
switch (swingHcmd)
{
case HDIR_AUTO:
swingH = HITACHI_AIRCON1_HDIR_AUTO;
break;
case HDIR_SWING:
swingH = HITACHI_AIRCON1_HDIR_SWING;
break;
}
Hi, would you create a pull request? I will then merge and release it. Thanks!
Pull request created.