arduino-heatpumpir icon indicating copy to clipboard operation
arduino-heatpumpir copied to clipboard

Correct swing commands for Hitachi models

Open octal-ip opened this issue 1 year ago • 2 comments

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;
  }

octal-ip avatar Jan 13 '24 01:01 octal-ip

Hi, would you create a pull request? I will then merge and release it. Thanks!

ToniA avatar Jan 13 '24 08:01 ToniA

Pull request created.

octal-ip avatar Apr 03 '24 21:04 octal-ip