AP_GPS: removed duplicate dataflash write of ublox version

This commit is contained in:
Andrew Tridgell 2016-02-24 14:26:57 +11:00
parent 14bd4ba2c7
commit 04bac8a446
1 changed files with 5 additions and 10 deletions

View File

@ -790,17 +790,12 @@ AP_GPS_UBLOX::_parse_gps(void)
} }
break; break;
case MSG_MON_VER: case MSG_MON_VER:
char version_buffer[46]; //17 string swVersion 30 hwVersion 10
_have_version = true; _have_version = true;
hal.util->snprintf(version_buffer, sizeof(version_buffer), GCS_MAVLINK::send_statustext_all(MAV_SEVERITY_INFO,
"u-blox %d HW: %s SW: %s", "u-blox %d HW: %s SW: %s",
state.instance, state.instance,
_buffer.mon_ver.hwVersion, _buffer.mon_ver.hwVersion,
_buffer.mon_ver.swVersion); _buffer.mon_ver.swVersion);
GCS_MAVLINK::send_statustext_all(MAV_SEVERITY_INFO, version_buffer);
if (gps._DataFlash != NULL && gps._DataFlash->logging_started()) {
gps._DataFlash->Log_Write_Message(version_buffer);
}
break; break;
default: default:
unexpected_message(); unexpected_message();