kopia lustrzana https://github.com/proto17/dji_droneid
Now printing all decoded bytes
This is needed to help figure out what the extra bytes at the end of the frame arepull/2/head
rodzic
82fa91320b
commit
000d76e6fb
|
@ -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");
|
||||
|
|
Ładowanie…
Reference in New Issue