mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 05:33:34 +08:00
GPS_DUMP_COMM: dump all gps instances
This commit is contained in:
@@ -579,10 +579,6 @@ void GPS::initializeCommunicationDump()
|
||||
return; //dumping disabled
|
||||
}
|
||||
|
||||
if (_instance != Instance::Main) {
|
||||
return;
|
||||
}
|
||||
|
||||
_dump_from_device = new gps_dump_s();
|
||||
_dump_to_device = new gps_dump_s();
|
||||
|
||||
@@ -607,7 +603,8 @@ void GPS::dumpGpsData(uint8_t *data, size_t len, bool msg_to_gps_device)
|
||||
return;
|
||||
}
|
||||
|
||||
gps_dump_s *dump_data = msg_to_gps_device ? _dump_to_device : _dump_from_device;
|
||||
gps_dump_s *dump_data = msg_to_gps_device ? _dump_to_device : _dump_from_device;
|
||||
dump_data->instance = (uint8_t) _instance;
|
||||
|
||||
while (len > 0) {
|
||||
size_t write_len = len;
|
||||
|
||||
Reference in New Issue
Block a user