mirror of
https://github.com/arendst/Tasmota.git
synced 2026-10-26 22:11:22 +00:00
Fix BL0939 temp range out-of-sync (#25117)
This commit is contained in:
1 parent
af56a31050
commit
947feea761
1 file changed
+2
-1
@@ -147,9 +147,10 @@ bool Bl09XXDecode3940(void) {
|
||||
|
||||
uint16_t tps1 = Bl09XX.rx_buffer[29] << 8 | Bl09XX.rx_buffer[28]; // TPS1 unsigned
|
||||
if ((Bl09XX.rx_buffer[0] != BL09XX_PACKET_HEADER) || // Bad header
|
||||
(Bl09XX.tps1 && ((tps1 < (Bl09XX.tps1 -10)) || (tps1 > (Bl09XX.tps1 +10)))) // Invalid temperature change
|
||||
(Bl09XX.tps1 && ((tps1 < (Bl09XX.tps1 -40)) || (tps1 > (Bl09XX.tps1 +40)))) // Invalid temperature change
|
||||
) {
|
||||
AddLog(LOG_LEVEL_DEBUG_MORE, PSTR("BL9: Invalid data hd=%02X, tps1:%d"), Bl09XX.rx_buffer[0], tps1);
|
||||
Bl09XX.tps1 = tps1; // Save in case of rapid temp change
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user