-
Notifications
You must be signed in to change notification settings - Fork 839
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Panasonic AC - Fix Low and High fan speed #1515
Conversation
Add Fan low and high speeds to setFan
Add low and high fan speed.
Added/corrected test for fan low and high speed.
Update the fan speed elsewhere.
Removing myself as a reviewer as I've now made significant changes myself. Over to @NiKiZe for an impartial code review. |
LGTM. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might give unexpected behaviour for any current consumers of fanspeeds?
Also what happens if this gets set on a unit that does not support it? Any chance for 🔥?
I don't think it will affect current consumers unless they are intentionally setting the fan speed to Low or High, in which case the result would be auto fan speed. |
Looking at the rest of the code, we clearly expected those values. It looks like we lost the ability to set them in a re-factor along the way. Now you've made me look: ;-) e.g. Prior to #934 it was: void IRPanasonicAc::setFan(const uint8_t speed) {
if (speed <= kPanasonicAcFanMax || speed == kPanasonicAcFanAuto)
remote_state[16] =
(remote_state[16] & 0x0F) | ((speed + kPanasonicAcFanOffset) << 4);
} So I clearly screwed that up! |
_v2.7.19 (20210706)_ **[Bug Fixes]** - Illegal Heap write in rawbuf when the capture has overflowed. (#1516 #1517) - PANASONIC_AC: Fix Low and High fan speeds (#1515) - Fix MDNS in IRServer and IRMQTTServer example code (#1498 #1499) - IRac: Fix off-by-one error in Coolix's sleep setting. (#1500) - Fix undefined constant (#1490) **[Features]** - Add detailed support for Kelon ACs (#1494) - Experimental basic support for Teknopoint A/C protocol (#1486 #1504) - Daikin64: Add support for Heat mode (#1492) - Basic support for `HAIER_AC176` 176 bit protocol. (#1480 #1481) **[Misc]** - GREE: Update inter-message gap timing (#1508 #1509) - IRac: Change Coolix to send special messages after a normal message. (#1501 #1502) - Fix compiler warnings causing Travis failures. (#1491) - Update supported model info (#1477 #1485 #1488 #1489) - Add HTML viewport meta tag to IRServer and IRMQTTServer examples (#1467 #1469)
* Regenerate Doxygen documentation * v2.7.19 release _v2.7.19 (20210706)_ **[Bug Fixes]** - Illegal Heap write in rawbuf when the capture has overflowed. (#1516 #1517) - PANASONIC_AC: Fix Low and High fan speeds (#1515) - Fix MDNS in IRServer and IRMQTTServer example code (#1498 #1499) - IRac: Fix off-by-one error in Coolix's sleep setting. (#1500) - Fix undefined constant (#1490) **[Features]** - Add detailed support for Kelon ACs (#1494) - Experimental basic support for Teknopoint A/C protocol (#1486 #1504) - Daikin64: Add support for Heat mode (#1492) - Basic support for `HAIER_AC176` 176 bit protocol. (#1480 #1481) **[Misc]** - GREE: Update inter-message gap timing (#1508 #1509) - IRac: Change Coolix to send special messages after a normal message. (#1501 #1502) - Fix compiler warnings causing Travis failures. (#1491) - Update supported model info (#1477 #1485 #1488 #1489) - Add HTML viewport meta tag to IRServer and IRMQTTServer examples (#1467 #1469)
FYI, the committed & merged changes have been included in the newly released version of the library. i.e. v2.7.19 |
Added the missing low and high fan speeds for Panasonic AC. Regression from previous. Tested with my Panasonic unit.