Browse Source

Replay: cope with new airspeed log msg

mission-4.1.18
Andrew Tridgell 10 years ago
parent
commit
a3422325c7
  1. 2
      Tools/Replay/LogReader.cpp

2
Tools/Replay/LogReader.cpp

@ -164,7 +164,7 @@ void LogReader::process_plane(uint8_t type, uint8_t *data, uint16_t length) @@ -164,7 +164,7 @@ void LogReader::process_plane(uint8_t type, uint8_t *data, uint16_t length)
case LOG_PLANE_AIRSPEED_MSG: {
struct log_AIRSPEED msg;
if(sizeof(msg) != length) {
if (sizeof(msg) != length && length != sizeof(msg)+8) {
printf("Bad AIRSPEED length\n");
exit(1);
}

Loading…
Cancel
Save