Discard packets not equal to size of telemetry
This commit is contained in:
parent
8accd62cf7
commit
0a93b253b5
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ int hexagram_main_dash2can(int argc, char **argv) {
|
|||
|
||||
if ((len = recv(sock, &packet, sizeof(packet), 0)) < 0) {
|
||||
goto error_io;
|
||||
} else if (len < (ssize_t)sizeof(packet)) {
|
||||
} else if (len != (ssize_t)sizeof(packet)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue