Skip to content

Commit f621826

Browse files
author
root@rpi
committed
Addressed PR review feedback
1 parent 1956934 commit f621826

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ See [CONTRIBUTING.md](./docs/CONTRIBUTING.md).
314314
[229]* WEC-2103 temperature/humidity sensor
315315
[230] Vauno EN8822C
316316
[231] Govee Water Leak Detector H5054
317+
[232] TFA Dostmann 14.1504.V2 Radio-controlled grill and meat thermometer
317318
318319
* Disabled by default, use -R n or a conf file to enable
319320

conf/rtl_433.example.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,12 +447,14 @@ stop_after_successful_events false
447447
protocol 223 # Badger ORION water meter, 100kbps (-f 916.45M -s 1200k)
448448
protocol 224 # GEO minim+ energy monitor
449449
protocol 225 # TyreGuard 400 TPMS
450+
<<<<<<< HEAD
450451
protocol 226 # Kia TPMS (-s 1000k)
451452
protocol 227 # SRSmith Pool Light Remote Control SRS-2C-TX (-f 915M)
452453
protocol 228 # Neptune R900 flow meters
453454
# protocol 229 # WEC-2103 temperature/humidity sensor
454455
protocol 230 # Vauno EN8822C
455456
protocol 231 # Govee Water Leak Detector H5054
457+
protocol 232 # TFA Dostmann 14.1504.V2 Radio-controlled grill and meat thermometer
456458

457459
## Flex devices (command line option "-X")
458460

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)