Skip to content

Commit

Permalink
Implemented PR review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
root@rpi committed Jan 8, 2023
1 parent c8f21f4 commit 6184c88
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/devices/tfa_14_1504_v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Payload format:
To get raw data:
```
rtl_433 -R 0 -X 'n=TFA-14.1504.V2,m=FSK_PCM,s=360,l=360,r=4096,preamble={24}aaaa5c'
rtl_433 -R 0 -X 'n=TFA-141504v2,m=FSK_PCM,s=360,l=360,r=4096,preamble={24}aaaa5c'
```
Example payloads (excluding preamble):
Expand Down Expand Up @@ -109,11 +109,11 @@ static int tfa_14_1504_v2_callback(r_device *decoder, bitbuffer_t *bitbuffer)

/* clang-format off */
data_t *output = data_make(
"model", "", DATA_STRING, "TFA-14.1504.V2",
"battery_ok", "Battery", DATA_INT, battery_ok,
"probe_fail", "Probe failure", DATA_INT, !is_probe_connected,
"temperature_C", "Temperature", DATA_COND, is_probe_connected, DATA_FORMAT, "%.0f C", DATA_DOUBLE, temp_c,
"mic", "Integrity", DATA_STRING, "DIGEST",
"model", "", DATA_STRING, "TFA-141504v2",
"battery_ok", "Battery", DATA_INT, battery_ok,
"probe_fail", "Probe failure", DATA_INT, !is_probe_connected,
"temperature_C", "Temperature", DATA_COND, is_probe_connected, DATA_FORMAT, "%.0f C", DATA_DOUBLE, temp_c,
"mic", "Integrity", DATA_STRING, "CRC",
NULL);
/* clang-format on */

Expand Down

0 comments on commit 6184c88

Please sign in to comment.