gps dump communication to file: include received RTCM messages

This commit is contained in:
Beat Küng 2016-05-16 11:38:55 +02:00 committed by Lorenz Meier
parent 6b8ab4611b
commit a94654e8d4
1 changed files with 6 additions and 0 deletions

View File

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