Skip to content

Commit 8ea0807

Browse files
author
root@rpi
committed
Addressed PR review feedback
1 parent 1a21058 commit 8ea0807

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ See [CONTRIBUTING.md](./docs/CONTRIBUTING.md).
309309
[224] GEO minim+ energy monitor
310310
[225] TyreGuard 400 TPMS
311311
[226] Kia TPMS (-s 1M)
312+
[227] TFA Dostmann 14.1504.V2 Radio-controlled grill and meat thermometer
312313
313314
* Disabled by default, use -R n or a conf file to enable
314315

conf/rtl_433.example.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ stop_after_successful_events false
448448
protocol 224 # GEO minim+ energy monitor
449449
protocol 225 # TyreGuard 400 TPMS
450450
protocol 226 # Kia TPMS (-s 1M)
451+
protocol 227 # TFA Dostmann 14.1504.V2 Radio-controlled grill and meat thermometer
451452

452453
## Flex devices (command line option "-X")
453454

src/devices/tfa_14_1504_v2.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ Example payloads (excluding preamble):
5252
static int tfa_14_1504_v2_callback(r_device *decoder, bitbuffer_t *bitbuffer)
5353
{
5454
uint8_t const preamble[] = {
55-
0xaa,
56-
0xaa,
57-
0x5c,
55+
0xaa, 0xaa, 0x5c,
5856
};
5957

6058
if (bitbuffer->num_rows != 1) {
@@ -105,7 +103,7 @@ static int tfa_14_1504_v2_callback(r_device *decoder, bitbuffer_t *bitbuffer)
105103
// we discard the last 2 bits as those are always zero
106104
uint16_t raw_temp_c = ((data[0] & 0xf) << 6) + (data[1] >> 2);
107105
unsigned is_probe_connected = (raw_temp_c != 0x1c0);
108-
double temp_c = ((int)raw_temp_c) - 532;
106+
float temp_c = ((int)raw_temp_c) - 532;
109107

110108
/* clang-format off */
111109
data_t *output = data_make(

0 commit comments

Comments
 (0)