forked from Archive/PX4-Autopilot
gps dump communication to file: include received RTCM messages
This commit is contained in:
parent
6b8ab4611b
commit
a94654e8d4
|
@ -452,6 +452,12 @@ void GPS::handleInjectDataTopic()
|
|||
|
||||
bool GPS::injectData(uint8_t *data, size_t len)
|
||||
{
|
||||
if (_dump_to_gps_device_fd >= 0) {
|
||||
if (write(_dump_to_gps_device_fd, data, len) != len) {
|
||||
PX4_WARN("gps dump failed");
|
||||
}
|
||||
}
|
||||
|
||||
return ::write(_serial_fd, data, len) == len;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue