Add files via upload

master
Wojciech Kaczmarski 2020-09-23 17:56:29 +02:00 committed by GitHub
parent 88558d192d
commit 80d10b099d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

4
dump.c
View File

@ -142,7 +142,7 @@ int main(int argc, char *argv[])
} }
printf("Listening for M17 frames on port %d:\n", port_num); printf("Listening for M17 frames on port %d:\n", port_num);
printf(" FN\t Src\t\t Dst\t\tType\tSID\tPld\n"); printf(" FN\t Src\t\t Dst\t\tType\tSID\trCRC\tcCRC\tPld\n");
while(1) while(1)
{ {
@ -173,7 +173,7 @@ int main(int argc, char *argv[])
if(packet.crc_udp!=local_crc) if(packet.crc_udp!=local_crc)
printf(ANSI_COLOR_YELLOW); printf(ANSI_COLOR_YELLOW);
printf("%6d\t%10s\t%10s\t%4X\t%04X\t", packet.fn, packet.src, packet.dst, packet.type, packet.sid); printf("%6d\t%10s\t%10s\t%4X\t%04X\t%04X\t%04X\t", packet.fn, packet.src, packet.dst, packet.type, packet.sid, packet.crc_udp, local_crc);
for(uint8_t i=0; i<128/8; i++) for(uint8_t i=0; i<128/8; i++)
printf("%02X", packet.payload[i]); printf("%02X", packet.payload[i]);