Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion tfa2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ void tfa2_decoder::flush(int rssi, int offset)
//-------------------------------------------------------------------------
void tfa2_decoder::flush_tx22(int rssi, int offset)
{
uint8_t crc_val=0,crc_calc=0;
uint8_t crc_val,crc_calc;

if (byte_cnt>=7 && byte_cnt<64) {
if (dbg) {
Expand Down Expand Up @@ -172,6 +172,12 @@ void tfa2_decoder::flush_tx22(int rssi, int offset)
if (have_temp) {
sd.id=new_id;
sd.temp=temp;
sd.humidity=0;
store_data(sd);
}
if (have_hum) {
sd.id=new_id|1;
sd.temp=0;
sd.humidity=hum;
store_data(sd);
}
Expand Down