From 5d44c2b2a950871353214ed7e1fcf9d690cd77c9 Mon Sep 17 00:00:00 2001 From: Nik Date: Tue, 19 Apr 2016 23:38:16 +0200 Subject: [PATCH] Migliorato il driver per chiavetta USB rtl-sdr --- rtl_433/src/devices/fineoffset_wh1080.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtl_433/src/devices/fineoffset_wh1080.c b/rtl_433/src/devices/fineoffset_wh1080.c index 46dcba1..ce22a9e 100644 --- a/rtl_433/src/devices/fineoffset_wh1080.c +++ b/rtl_433/src/devices/fineoffset_wh1080.c @@ -218,9 +218,9 @@ static int fineoffset_wh1080_callback(bitbuffer_t *bitbuffer) { return 0; } - if (br[0] == 0xff && br[1] == 0xa0) { + if (br[0] == 0xff && (br[1] >> 4) == 0x0a) { msg_type = 0; - } else if (br[0] == 0xff && br[1] == 0xb0) { + } else if (br[0] == 0xff && (br[1] >> 4) == 0x0b) { msg_type = 1; }