File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -5901,6 +5901,12 @@ void GCS_MAVLINK::send_sys_status()
5901
5901
const uint16_t errors2 = (errors>>16 ) & 0xffff ;
5902
5902
const uint16_t errors4 = AP::internalerror ().count () & 0xffff ;
5903
5903
5904
+ #if HAL_LOGGING_ENABLED
5905
+ const uint16_t dropped_logmessage_count = AP::logger ().num_dropped ();
5906
+ #else
5907
+ const uint16_t dropped_logmessage_count = -1 ;
5908
+ #endif // HAL_LOGGING_ENABLED
5909
+
5904
5910
mavlink_msg_sys_status_send (
5905
5911
chan,
5906
5912
control_sensors_present,
@@ -5924,7 +5930,7 @@ void GCS_MAVLINK::send_sys_status()
5924
5930
0 , // comm drops in pkts,
5925
5931
errors1,
5926
5932
errors2,
5927
- 0 , // errors3
5933
+ dropped_logmessage_count , // errors3
5928
5934
errors4); // errors4
5929
5935
}
5930
5936
You can’t perform that action at this time.
0 commit comments