From 44e893c0105bd04d1b5720f34fd227b5948ecd65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Franz=C3=A9n?= Date: Sun, 27 Mar 2022 16:49:27 +0200 Subject: [PATCH] minor: Fix payload length in RadioHead-ASK (#2027) --- src/devices/radiohead_ask.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/radiohead_ask.c b/src/devices/radiohead_ask.c index d822c811..a7cd3a8c 100644 --- a/src/devices/radiohead_ask.c +++ b/src/devices/radiohead_ask.c @@ -155,7 +155,7 @@ static int radiohead_ask_callback(r_device *decoder, bitbuffer_t *bitbuffer) header_flags = rh_payload[4]; // Format data - for (int j = 0; j < msg_len; j++) { + for (int j = 0; j < data_len; j++) { rh_data_payload[j] = (int)rh_payload[5 + j]; } /* clang-format off */