mirror of https://github.com/ArduPilot/ardupilot
DataFlash: eliminate GCS_MAVLINK::send_statustext_all
This commit is contained in:
parent
33a974d7f5
commit
f6a09d0657
|
@ -50,7 +50,7 @@ const AP_Param::GroupInfo DataFlash_Class::var_info[] = {
|
|||
|
||||
void DataFlash_Class::Init(const struct LogStructure *structures, uint8_t num_types)
|
||||
{
|
||||
GCS_MAVLINK::send_statustext_all(MAV_SEVERITY_INFO, "Preparing log system");
|
||||
gcs().send_text(MAV_SEVERITY_INFO, "Preparing log system");
|
||||
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
||||
validate_structures(structures, num_types);
|
||||
dump_structures(structures, num_types);
|
||||
|
@ -111,7 +111,7 @@ void DataFlash_Class::Init(const struct LogStructure *structures, uint8_t num_ty
|
|||
|
||||
EnableWrites(true);
|
||||
|
||||
GCS_MAVLINK::send_statustext_all(MAV_SEVERITY_INFO, "Prepared log system");
|
||||
gcs().send_text(MAV_SEVERITY_INFO, "Prepared log system");
|
||||
}
|
||||
|
||||
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
||||
|
|
|
@ -187,7 +187,7 @@ void DataFlash_File::periodic_1Hz(const uint32_t now)
|
|||
{
|
||||
if (!io_thread_alive()) {
|
||||
if (io_thread_warning_decimation_counter == 0) {
|
||||
GCS_MAVLINK::send_statustext_all(MAV_SEVERITY_CRITICAL, "No IO Thread Heartbeat");
|
||||
gcs().send_text(MAV_SEVERITY_CRITICAL, "No IO Thread Heartbeat");
|
||||
}
|
||||
if (io_thread_warning_decimation_counter++ > 57) {
|
||||
io_thread_warning_decimation_counter = 0;
|
||||
|
|
Loading…
Reference in New Issue