Now printing all decoded bytes

This is needed to help figure out what the extra bytes at the end of the frame are
pull/2/head
David Protzman 2022-04-22 21:51:13 -04:00
rodzic 82fa91320b
commit 000d76e6fb
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -165,7 +165,7 @@ int main(int argc, const char ** argv) {
const uint32_t payload_length = decoded_bytes[0] + payload_crc_byte_len + additional_payload_bytes;
// Print out the frame in hex
for (uint32_t idx = 0; idx < payload_length; idx++) {
for (uint32_t idx = 0; idx < decoded_bytes.size(); idx++) {
fprintf(stdout, "%02x", decoded_bytes[idx]);
}
fprintf(stdout, "\n");