minor: Fix payload length in RadioHead-ASK (#2027)

This commit is contained in:
Andreas Franzén
2022-03-27 16:49:27 +02:00
committed by GitHub
parent 778b94ca98
commit 44e893c010

View File

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