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 */