mavlink: update radio status timestamp atomically

- this is updated by the mavlink rx thread, but checked in the tx thread
This commit is contained in:
Daniel Agar
2021-08-22 11:06:55 -04:00
parent 61702d0d97
commit a4527485a3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1506,7 +1506,7 @@ MavlinkReceiver::handle_message_radio_status(mavlink_message_t *msg)
radio_status_s status{};
status.timestamp = hrt_absolute_time();
hrt_store_absolute_time(&status.timestamp);
status.rssi = rstatus.rssi;
status.remote_rssi = rstatus.remrssi;
status.txbuf = rstatus.txbuf;