Skip to content

Commit a0247a6

Browse files
Samt43zuckschwerdt
authored andcommitted
Fix inFactory-TH for newer inFactory NC-3982-675 (#3504)
The length of the frame on newer devices might be 41 instead of 40.
1 parent 5e6f2fb commit a0247a6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/devices/infactory.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Outdoor sensor, transmits temperature and humidity data
2020
- inFactory NC-3982-913/NX-5817-902, Pearl (for FWS-686 station)
2121
- nor-tec 73383 (weather station + sensor), Schou Company AS, Denmark
2222
- DAY 73365 (weather station + sensor), Schou Company AS, Denmark
23-
- Tchibo NC-3982-675
23+
- Tchibo / Infactory NC-3982-675
2424
2525
Known brand names: inFactory, nor-tec, GreenBlue, DAY. Manufacturer in China.
2626
@@ -66,7 +66,7 @@ static int infactory_crc_check(uint8_t *b)
6666

6767
static int infactory_decode(r_device *decoder, bitbuffer_t *bitbuffer)
6868
{
69-
if (bitbuffer->bits_per_row[0] != 40)
69+
if (bitbuffer->bits_per_row[0] != 40 && bitbuffer->bits_per_row[0] != 41)
7070
return DECODE_ABORT_LENGTH;
7171

7272
uint8_t *b = bitbuffer->bb[0];

0 commit comments

Comments
 (0)