From b03e328d2d6e9c8d7f7ff934d4e5dbdcc5a45db9 Mon Sep 17 00:00:00 2001 From: Norbert Richter Date: Tue, 17 Mar 2020 08:25:55 +0100 Subject: [PATCH] Fix TX20 wind sensor start frame check --- tasmota/xsns_35_tx20.ino | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasmota/xsns_35_tx20.ino b/tasmota/xsns_35_tx20.ino index c9c1fcee7..06d715ac0 100644 --- a/tasmota/xsns_35_tx20.ino +++ b/tasmota/xsns_35_tx20.ino @@ -237,7 +237,11 @@ void TX2xStartRead(void) // check checksum, start frame,non-inverted==inverted values and max. speed ; +#ifdef USE_TX23_WIND_SENSOR if ((chk == tx2x_sd) && (0x1b==tx2x_sa) && (tx2x_sb==tx2x_se) && (tx2x_sc==tx2x_sf) && (tx2x_sc < 511)) { +#else + if ((chk == tx2x_sd) && (tx2x_sb==tx2x_se) && (tx2x_sc==tx2x_sf) && (tx2x_sc < 511)) { +#endif tx2x_last_available = uptime; // Wind speed spec: 0 to 180 km/h (0 to 50 m/s) tx2x_wind_speed = tx2x_sc;