Skip to content

Commit

Permalink
Merge pull request arendst#7939 from curzon01/development
Browse files Browse the repository at this point in the history
Fix TX20 wind sensor start frame check
  • Loading branch information
arendst authored Mar 17, 2020
2 parents 6ec768e + b03e328 commit fa7c87e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tasmota/xsns_35_tx20.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fa7c87e

Please sign in to comment.