mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 03:33:34 +08:00
fix mtk+ubx gps driver: use px4_clock_settime instead of clock_settime
This commit is contained in:
@@ -276,7 +276,7 @@ MTK::handle_message(gps_mtk_packet_t &packet)
|
||||
ts.tv_sec = epoch;
|
||||
ts.tv_nsec = timeinfo_conversion_temp * 1000000ULL;
|
||||
|
||||
if (clock_settime(CLOCK_REALTIME, &ts)) {
|
||||
if (px4_clock_settime(CLOCK_REALTIME, &ts)) {
|
||||
warn("failed setting clock");
|
||||
}
|
||||
|
||||
|
||||
@@ -875,7 +875,7 @@ UBX::payload_rx_done(void)
|
||||
ts.tv_sec = epoch;
|
||||
ts.tv_nsec = _buf.payload_rx_nav_pvt.nano;
|
||||
|
||||
if (clock_settime(CLOCK_REALTIME, &ts)) {
|
||||
if (px4_clock_settime(CLOCK_REALTIME, &ts)) {
|
||||
warn("failed setting clock");
|
||||
}
|
||||
|
||||
@@ -973,7 +973,7 @@ UBX::payload_rx_done(void)
|
||||
ts.tv_sec = epoch;
|
||||
ts.tv_nsec = _buf.payload_rx_nav_timeutc.nano;
|
||||
|
||||
if (clock_settime(CLOCK_REALTIME, &ts)) {
|
||||
if (px4_clock_settime(CLOCK_REALTIME, &ts)) {
|
||||
warn("failed setting clock");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user