Compare commits

..

No commits in common. "42970bd16e6e33663869137d3864a6d4f5337b6f" and "41db2fa38b2dfe75bc739c05e30afd0419b3da8f" have entirely different histories.

2 changed files with 20 additions and 20 deletions

View File

@ -859,7 +859,7 @@ void ac_set_state(int mode, int temperature, int fan_speed)
IrSender.sendRaw(ir_code_off, sizeof(ir_code_off) / sizeof(ir_code_off[0]), NEC_KHZ);
break;
case 1:
IrSender.sendRaw(ir_code_cool[fan_speed][temperature], sizeof(ir_code_cool[fan_speed][temperature]) / sizeof(ir_code_cool[fan_speed][temperature][0]), NEC_KHZ);
IrSender.sendRaw(ir_code_cool[fan_speed][temperature], sizeof(ir_code_cool[fan_speed][temperature]) / sizeof(ir_code_cool[fan_speed][0]), NEC_KHZ);
break;
case 2:
IrSender.sendRaw(ir_code_fan[fan_speed], sizeof(ir_code_fan[fan_speed]) / sizeof(ir_code_fan[fan_speed][0]), NEC_KHZ);

View File

@ -7,25 +7,25 @@
#define RAW_BUFFER_LENGTH 750
#define AC_MAX_TEMPERATURE 30
#define AC_MIN_TEMPERATURE 15
extern const uint16_t ir_code_cool[4][16][91] = {
extern const uint16_t ir_code_cool[4][16][90] = {
// Fan Speed Auto
{
{8976, 4498, 562, 546, 589, 547, 588, 1649, 588, 548, 587, 1649, 588, 547, 589, 548, 587, 564, 589, 547, 588, 1649, 588, 548, 587, 547, 588, 548, 588, 548, 588, 547, 587, 566, 587, 548, 587, 548, 588, 548, 587, 548, 588, 548, 587, 549, 586, 548, 587, 565, 588, 549, 586, 548, 588, 548, 588, 548, 560, 577, 584, 549, 586, 551, 585, 565, 588, 549, 587, 548, 560, 576, 560, 574, 587, 549, 587, 550, 586, 548, 588, 570, 560, 576, 586, 549, 560, 575, 560, 1665, 560}, // 15C
{8976, 4498, 560, 548, 587, 549, 587, 1650, 587, 549, 587, 1649, 586, 550, 587, 548, 587, 565, 587, 549, 586, 1652, 586, 549, 586, 549, 587, 548, 587, 549, 586, 549, 587, 1667, 587, 548, 587, 548, 587, 549, 588, 547, 587, 549, 587, 549, 587, 548, 587, 565, 587, 549, 586, 549, 587, 549, 586, 548, 587, 549, 587, 549, 587, 547, 589, 564, 587, 548, 588, 548, 587, 548, 587, 549, 587, 550, 585, 549, 587, 549, 586, 570, 587, 548, 587, 550, 586, 549, 587, 536, 587}, // 16C
{8976, 4499, 531, 577, 558, 577, 559, 1678, 559, 577, 558, 1679, 559, 577, 558, 577, 558, 595, 558, 577, 558, 1679, 558, 577, 559, 576, 559, 578, 558, 576, 559, 1679, 558, 594, 558, 578, 558, 577, 559, 576, 558, 578, 558, 577, 558, 577, 558, 578, 558, 594, 559, 577, 558, 577, 558, 578, 557, 578, 558, 577, 559, 577, 557, 578, 559, 593, 559, 577, 558, 577, 559, 576, 559, 577, 558, 578, 557, 578, 559, 576, 559, 599, 558, 1678, 559, 1679, 559, 1678, 558, 1666, 560}, // 17C
{8977, 4498, 561, 549, 587, 547, 588, 1649, 588, 547, 589, 1648, 589, 547, 588, 548, 587, 565, 589, 547, 587, 1650, 587, 547, 589, 548, 588, 546, 589, 547, 588, 1649, 588, 1667, 587, 548, 588, 547, 588, 548, 588, 547, 588, 548, 588, 548, 587, 548, 587, 565, 587, 548, 588, 547, 588, 549, 587, 548, 587, 548, 588, 548, 587, 548, 588, 564, 588, 547, 588, 549, 586, 550, 587, 547, 588, 548, 587, 548, 588, 548, 587, 570, 587, 1649, 588, 1650, 588, 1649, 588, 536, 587}, // 18C
{8998, 4502, 534, 574, 587, 549, 585, 1652, 586, 550, 560, 1677, 560, 575, 586, 550, 561, 591, 587, 548, 586, 1651, 587, 549, 586, 549, 585, 550, 561, 1676, 563, 573, 560, 592, 587, 549, 561, 574, 586, 550, 586, 550, 559, 575, 561, 575, 561, 575, 560, 592, 560, 576, 560, 575, 560, 576, 560, 574, 561, 575, 560, 576, 560, 575, 560, 593, 559, 576, 560, 575, 560, 577, 558, 576, 560, 575, 562, 574, 560, 576, 560, 597, 560, 1676, 562, 1676, 559, 576, 561, 1665, 560}, // 19C
{8978, 4503, 562, 548, 586, 549, 588, 1649, 587, 547, 589, 1649, 588, 547, 588, 548, 587, 565, 590, 546, 587, 1649, 588, 548, 588, 548, 587, 548, 587, 1649, 588, 548, 588, 1666, 588, 547, 588, 547, 588, 549, 587, 548, 588, 547, 588, 547, 589, 547, 587, 565, 588, 547, 588, 549, 587, 548, 587, 549, 587, 547, 588, 548, 588, 547, 588, 564, 589, 547, 587, 549, 587, 548, 588, 548, 588, 547, 588, 547, 588, 547, 588, 570, 588, 1649, 588, 1649, 587, 548, 588, 535, 589}, // 20C
{8977, 4503, 560, 549, 587, 548, 560, 1677, 587, 548, 587, 1650, 587, 549, 586, 549, 586, 567, 587, 548, 587, 1650, 588, 547, 587, 549, 587, 548, 587, 1650, 587, 1650, 588, 565, 588, 547, 587, 549, 587, 548, 587, 548, 587, 548, 588, 548, 587, 549, 587, 565, 586, 549, 587, 548, 588, 548, 587, 549, 586, 549, 587, 548, 587, 548, 588, 565, 588, 547, 588, 548, 587, 548, 588, 548, 587, 548, 587, 548, 588, 548, 587, 570, 588, 1649, 588, 547, 588, 1650, 588, 1635, 589}, // 21C
{8996, 4503, 506, 603, 533, 603, 533, 1703, 534, 602, 532, 1705, 533, 602, 533, 602, 533, 619, 533, 603, 533, 1704, 533, 602, 533, 603, 533, 603, 531, 1705, 533, 1704, 532, 1722, 533, 602, 533, 603, 533, 602, 534, 602, 533, 602, 533, 602, 533, 603, 533, 619, 533, 602, 533, 603, 533, 603, 532, 603, 533, 602, 533, 602, 534, 602, 533, 620, 532, 603, 533, 602, 533, 603, 533, 602, 533, 602, 533, 603, 533, 602, 533, 624, 533, 1705, 533, 602, 533, 1704, 533, 590, 533}, // 22C
{8976, 4504, 560, 549, 587, 548, 587, 1650, 587, 548, 587, 1650, 587, 549, 587, 548, 587, 566, 587, 548, 587, 1649, 589, 548, 587, 548, 587, 1650, 587, 549, 587, 548, 588, 564, 588, 548, 587, 548, 587, 549, 587, 548, 587, 548, 587, 548, 588, 548, 588, 565, 587, 548, 588, 548, 587, 547, 588, 548, 587, 549, 586, 549, 587, 548, 588, 565, 587, 548, 587, 548, 588, 548, 586, 549, 587, 549, 587, 548, 588, 548, 587, 570, 587, 1650, 588, 547, 587, 549, 587, 1637, 588}, // 23C
{8976, 4504, 560, 549, 587, 549, 586, 1651, 586, 549, 586, 1651, 587, 548, 587, 548, 588, 565, 587, 548, 587, 1650, 587, 549, 586, 549, 587, 1650, 587, 549, 586, 549, 587, 1667, 587, 548, 587, 549, 587, 549, 586, 549, 586, 549, 587, 548, 588, 548, 587, 565, 587, 548, 587, 549, 587, 548, 587, 549, 587, 548, 587, 549, 587, 548, 586, 567, 586, 549, 586, 549, 586, 549, 587, 548, 588, 549, 586, 549, 586, 550, 587, 570, 586, 1650, 587, 549, 587, 548, 587, 537, 586}, // 24C
{8977, 4503, 531, 578, 534, 602, 556, 1680, 534, 602, 533, 1704, 556, 579, 557, 579, 533, 619, 533, 603, 532, 1704, 558, 578, 533, 603, 532, 1705, 555, 580, 532, 1705, 557, 595, 557, 579, 556, 579, 557, 579, 557, 578, 557, 579, 557, 578, 557, 578, 557, 596, 557, 578, 557, 579, 557, 577, 559, 577, 559, 576, 558, 578, 557, 578, 558, 594, 559, 577, 558, 578, 558, 577, 558, 577, 559, 577, 559, 576, 560, 575, 560, 598, 558, 578, 558, 1678, 559, 1679, 559, 1666, 558}, // 25C
{8976, 4498, 507, 602, 534, 602, 533, 1703, 534, 602, 533, 1704, 533, 602, 557, 579, 533, 619, 533, 602, 557, 1680, 534, 602, 533, 602, 534, 1703, 534, 602, 556, 1680, 534, 1720, 533, 602, 534, 602, 534, 602, 533, 602, 556, 580, 533, 601, 535, 601, 534, 619, 533, 602, 534, 602, 534, 601, 534, 602, 533, 602, 558, 577, 534, 602, 533, 619, 534, 602, 557, 578, 557, 578, 534, 602, 533, 603, 532, 603, 556, 579, 533, 624, 557, 579, 533, 1704, 533, 1704, 533, 590, 533}, // 26C
{8977, 4503, 533, 576, 560, 575, 559, 1679, 559, 577, 559, 1677, 559, 576, 559, 580, 556, 593, 559, 577, 559, 1677, 561, 575, 559, 576, 560, 1678, 559, 1678, 560, 575, 559, 593, 559, 577, 559, 576, 560, 575, 560, 576, 559, 576, 560, 576, 560, 576, 559, 592, 560, 576, 560, 575, 560, 576, 559, 576, 560, 576, 559, 577, 558, 576, 560, 593, 559, 576, 560, 575, 561, 575, 560, 575, 559, 577, 559, 576, 560, 576, 559, 598, 560, 576, 560, 1677, 558, 577, 559, 1667, 559}, // 27C
{8996, 4504, 483, 626, 533, 602, 510, 1727, 533, 602, 533, 1704, 533, 602, 534, 602, 510, 642, 533, 603, 533, 1704, 532, 602, 534, 602, 533, 1704, 533, 1704, 533, 603, 512, 1742, 531, 604, 532, 603, 533, 603, 531, 604, 532, 603, 532, 603, 533, 603, 532, 620, 532, 604, 531, 604, 531, 604, 533, 602, 511, 626, 532, 603, 509, 626, 510, 643, 531, 604, 532, 603, 533, 603, 532, 603, 531, 605, 532, 602, 533, 602, 533, 625, 531, 605, 532, 1704, 533, 603, 533, 590, 534}, // 28C
{8977, 4497, 508, 601, 534, 601, 535, 1702, 535, 601, 534, 1703, 534, 601, 535, 601, 534, 618, 534, 601, 535, 1702, 534, 602, 535, 600, 534, 1703, 534, 1703, 534, 1704, 534, 618, 534, 601, 534, 602, 534, 601, 534, 601, 535, 600, 535, 601, 535, 601, 534, 618, 534, 602, 534, 600, 535, 601, 535, 600, 535, 601, 534, 602, 533, 602, 534, 619, 534, 600, 535, 601, 534, 602, 533, 602, 535, 600, 535, 601, 534, 601, 535, 623, 533, 602, 534, 601, 534, 1703, 535, 1690, 534}, // 29C
{8978, 4503, 533, 575, 561, 575, 559, 1678, 559, 577, 559, 1678, 559, 577, 558, 576, 560, 593, 559, 576, 560, 1677, 560, 575, 559, 577, 560, 1677, 560, 1677, 559, 1679, 558, 1696, 559, 576, 559, 576, 560, 576, 559, 576, 559, 576, 560, 576, 560, 575, 559, 594, 559, 576, 560, 575, 560, 576, 560, 575, 560, 576, 559, 576, 560, 575, 560, 594, 558, 576, 560, 575, 559, 577, 560, 575, 560, 576, 559, 577, 561, 574, 559, 599, 559, 576, 559, 579, 557, 1677, 560, 564, 559} // 30C
{4503, 560, 548, 588, 548, 587, 1650, 586, 549, 587, 1649, 587, 549, 586, 549, 587, 565, 587, 548, 587, 1650, 587, 548, 587, 548, 587, 548, 588, 547, 587, 548, 588, 565, 587, 548, 587, 548, 588, 548, 587, 547, 588, 548, 586, 550, 586, 549, 586, 565, 587, 549, 587, 548, 587, 548, 587, 548, 587, 549, 586, 549, 587, 547, 588, 565, 587, 548, 587, 549, 586, 548, 588, 548, 587, 547, 588, 548, 588, 547, 588, 569, 588, 548, 587, 549, 586, 548, 588, 1636, 588}, // 15C
{4503, 561, 547, 589, 546, 589, 1647, 589, 547, 589, 1647, 589, 547, 588, 547, 589, 563, 589, 546, 589, 1648, 589, 546, 589, 546, 590, 546, 588, 546, 589, 547, 588, 1665, 589, 547, 587, 548, 588, 547, 588, 547, 589, 546, 589, 546, 589, 546, 590, 563, 589, 546, 589, 547, 588, 547, 588, 547, 588, 547, 588, 547, 589, 547, 588, 563, 589, 547, 588, 546, 590, 547, 587, 548, 589, 545, 589, 547, 588, 547, 588, 569, 589, 546, 589, 546, 589, 546, 589, 535, 588}, // 16C
{4497, 561, 548, 586, 548, 588, 1649, 587, 549, 587, 1649, 587, 549, 586, 548, 588, 565, 587, 547, 588, 1649, 588, 547, 588, 548, 587, 548, 587, 548, 587, 1649, 587, 566, 587, 548, 587, 548, 588, 547, 588, 548, 587, 547, 588, 548, 587, 548, 587, 565, 588, 547, 588, 548, 587, 548, 587, 549, 586, 548, 588, 547, 587, 549, 587, 565, 587, 548, 587, 549, 586, 549, 587, 548, 587, 548, 587, 548, 588, 547, 587, 570, 587, 1649, 587, 1650, 587, 1649, 588, 1637, 587}, // 17C
{4497, 560, 548, 587, 549, 587, 1649, 588, 547, 588, 1649, 589, 546, 587, 548, 588, 564, 588, 547, 588, 1649, 587, 549, 586, 548, 588, 548, 587, 548, 587, 1649, 588, 1666, 587, 548, 588, 547, 587, 548, 588, 548, 587, 548, 587, 548, 588, 547, 587, 566, 587, 547, 588, 548, 588, 547, 587, 548, 588, 547, 588, 548, 587, 548, 587, 565, 588, 547, 587, 549, 587, 547, 588, 547, 588, 548, 588, 547, 588, 547, 588, 570, 587, 1649, 588, 1648, 588, 1649, 588, 535, 587}, // 18C
{4496, 561, 548, 587, 548, 587, 1650, 586, 548, 588, 1649, 587, 549, 587, 548, 587, 566, 589, 546, 587, 1648, 588, 548, 587, 548, 588, 547, 587, 1650, 587, 547, 588, 566, 586, 549, 587, 547, 588, 548, 587, 548, 587, 548, 587, 548, 588, 547, 589, 564, 587, 549, 586, 548, 588, 547, 588, 548, 587, 548, 587, 548, 587, 548, 588, 564, 588, 547, 588, 548, 587, 548, 586, 549, 587, 549, 587, 548, 586, 549, 586, 570, 588, 1649, 587, 1650, 588, 547, 587, 1637, 587}, // 19C
{4502, 560, 549, 587, 549, 585, 1650, 587, 549, 585, 1651, 587, 549, 586, 549, 586, 566, 586, 549, 586, 1650, 586, 550, 586, 550, 585, 550, 585, 1651, 585, 550, 586, 1668, 586, 549, 586, 549, 586, 549, 586, 553, 583, 549, 585, 550, 586, 549, 586, 567, 584, 551, 585, 550, 586, 549, 585, 550, 586, 550, 585, 550, 585, 550, 586, 565, 587, 550, 585, 549, 586, 549, 585, 551, 585, 549, 587, 549, 586, 549, 586, 571, 586, 1652, 584, 1652, 585, 550, 585, 538, 585}, // 20C
{4502, 561, 548, 587, 549, 586, 1649, 588, 548, 587, 1649, 587, 549, 586, 549, 586, 566, 587, 548, 587, 1650, 586, 549, 587, 548, 587, 548, 587, 1651, 641, 1595, 586, 566, 586, 548, 589, 547, 587, 548, 588, 547, 587, 549, 586, 549, 587, 548, 587, 565, 588, 548, 586, 549, 587, 548, 587, 548, 587, 548, 587, 547, 588, 549, 587, 565, 587, 548, 588, 547, 587, 548, 587, 548, 588, 548, 587, 549, 586, 548, 587, 570, 587, 1649, 588, 548, 587, 1649, 588, 1637, 587}, // 21C
{4502, 561, 548, 586, 549, 587, 1649, 587, 549, 587, 1649, 587, 548, 587, 549, 587, 565, 586, 549, 586, 1650, 588, 548, 586, 549, 587, 548, 587, 1650, 587, 1650, 586, 1666, 588, 548, 587, 548, 587, 548, 587, 548, 588, 547, 587, 549, 587, 548, 587, 565, 587, 548, 587, 549, 587, 548, 587, 548, 587, 549, 586, 549, 587, 548, 587, 565, 588, 547, 587, 548, 587, 550, 585, 548, 587, 549, 587, 548, 587, 548, 587, 570, 588, 1648, 588, 548, 587, 1649, 587, 537, 587}, // 22C
{4497, 560, 548, 587, 548, 587, 1650, 587, 548, 587, 1649, 587, 549, 586, 549, 587, 565, 587, 549, 586, 1649, 588, 548, 587, 548, 587, 1650, 587, 548, 587, 548, 587, 565, 587, 549, 586, 549, 586, 548, 588, 548, 587, 549, 586, 548, 587, 548, 588, 565, 587, 548, 587, 548, 587, 548, 587, 548, 588, 547, 588, 548, 586, 549, 587, 565, 587, 549, 586, 549, 587, 548, 587, 547, 590, 546, 587, 548, 588, 548, 587, 570, 586, 1650, 587, 548, 587, 549, 587, 1637, 587}, // 23C
{4497, 560, 548, 587, 549, 587, 1649, 587, 548, 588, 1649, 587, 549, 587, 548, 586, 566, 587, 548, 587, 1649, 588, 548, 587, 548, 587, 1649, 588, 548, 586, 549, 587, 1666, 587, 548, 588, 548, 587, 548, 587, 547, 588, 549, 586, 548, 587, 548, 588, 564, 588, 548, 587, 548, 587, 549, 586, 548, 588, 548, 587, 548, 587, 548, 587, 565, 588, 547, 588, 547, 588, 548, 587, 548, 587, 548, 587, 548, 587, 549, 586, 571, 586, 1650, 588, 547, 588, 547, 588, 536, 587}, // 24C
{4497, 560, 548, 587, 549, 586, 1650, 586, 550, 586, 1650, 587, 548, 587, 550, 585, 565, 587, 548, 587, 1651, 586, 548, 587, 548, 587, 1651, 586, 548, 588, 1649, 587, 565, 587, 548, 587, 549, 587, 548, 586, 550, 586, 548, 587, 548, 587, 548, 588, 565, 587, 548, 587, 548, 587, 548, 587, 548, 587, 549, 587, 548, 587, 552, 583, 565, 587, 548, 587, 548, 587, 548, 587, 549, 587, 548, 587, 548, 587, 549, 587, 570, 586, 549, 586, 1650, 587, 1650, 586, 1639, 586}, // 25C
{4503, 559, 550, 585, 550, 585, 1652, 586, 549, 586, 1651, 585, 550, 585, 550, 585, 567, 585, 551, 585, 1651, 586, 549, 586, 549, 586, 1651, 585, 550, 586, 1650, 586, 1668, 586, 549, 585, 552, 584, 549, 587, 549, 585, 549, 586, 550, 585, 551, 585, 566, 586, 550, 585, 550, 586, 549, 586, 549, 586, 549, 586, 550, 584, 551, 586, 566, 585, 550, 586, 549, 586, 549, 586, 550, 585, 550, 585, 551, 585, 549, 586, 572, 585, 550, 585, 1651, 586, 1651, 585, 538, 585}, // 26C
{4497, 560, 549, 586, 549, 586, 1650, 587, 549, 586, 1650, 587, 548, 587, 548, 588, 564, 587, 549, 586, 1650, 587, 549, 586, 549, 587, 1649, 587, 1649, 588, 548, 587, 565, 587, 549, 586, 549, 586, 549, 586, 549, 587, 548, 587, 549, 586, 549, 586, 566, 586, 549, 586, 549, 587, 548, 588, 547, 587, 548, 587, 549, 587, 549, 586, 565, 587, 549, 587, 548, 586, 549, 587, 548, 586, 550, 585, 549, 587, 549, 586, 571, 587, 548, 586, 1651, 586, 549, 586, 1638, 587}, // 27C
{4497, 560, 548, 588, 547, 587, 1650, 588, 548, 586, 1650, 587, 548, 587, 548, 588, 565, 586, 549, 587, 1649, 587, 548, 588, 548, 587, 1649, 587, 1649, 588, 548, 587, 1666, 588, 548, 587, 548, 587, 549, 586, 549, 586, 549, 586, 549, 586, 549, 587, 566, 586, 548, 587, 548, 587, 549, 586, 548, 588, 548, 587, 549, 586, 548, 588, 565, 587, 548, 586, 549, 587, 548, 587, 548, 587, 549, 586, 548, 588, 548, 587, 570, 587, 548, 587, 1650, 586, 549, 587, 536, 587}, // 28C
{4497, 561, 548, 587, 548, 587, 1652, 585, 548, 587, 1650, 587, 548, 587, 548, 587, 565, 587, 548, 588, 1648, 588, 548, 587, 548, 587, 1650, 587, 1649, 588, 1648, 587, 566, 587, 548, 587, 549, 587, 548, 586, 549, 587, 548, 587, 548, 587, 548, 587, 565, 587, 549, 587, 548, 587, 548, 587, 548, 588, 547, 588, 548, 587, 547, 588, 565, 588, 547, 588, 547, 588, 547, 588, 548, 587, 548, 587, 548, 587, 548, 587, 571, 586, 549, 587, 548, 587, 1649, 587, 1638, 587}, // 29C
{4503, 559, 550, 586, 548, 586, 1651, 587, 549, 585, 1651, 586, 549, 587, 549, 586, 566, 586, 549, 586, 1650, 586, 550, 586, 549, 586, 1650, 587, 1649, 587, 1650, 586, 1668, 586, 549, 586, 549, 587, 549, 586, 548, 587, 549, 586, 549, 586, 549, 587, 566, 586, 548, 587, 549, 587, 549, 585, 549, 587, 548, 587, 549, 586, 549, 586, 566, 586, 549, 586, 549, 587, 548, 587, 549, 586, 549, 586, 549, 587, 549, 586, 571, 586, 549, 587, 549, 586, 1649, 587, 537, 586} // 30C
},
// Fan Speed High
{