Replay: cope with new airspeed log msg

This commit is contained in:
Andrew Tridgell 2014-11-22 13:26:31 +11:00
parent 8acfbb2ee0
commit a3422325c7

View File

@ -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);
}