mirror of https://github.com/ArduPilot/ardupilot
Tracker: use Notify singleton for sending statustext
This commit is contained in:
parent
7ad003a211
commit
f9eeaacd6c
|
@ -901,7 +901,6 @@ void Tracker::gcs_update(void)
|
||||||
void Tracker::gcs_send_text(MAV_SEVERITY severity, const char *str)
|
void Tracker::gcs_send_text(MAV_SEVERITY severity, const char *str)
|
||||||
{
|
{
|
||||||
gcs().send_statustext(severity, 0xFF, str);
|
gcs().send_statustext(severity, 0xFF, str);
|
||||||
notify.send_text(str);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -917,7 +916,6 @@ void Tracker::gcs_send_text_fmt(MAV_SEVERITY severity, const char *fmt, ...)
|
||||||
hal.util->vsnprintf((char *)str, sizeof(str), fmt, arg_list);
|
hal.util->vsnprintf((char *)str, sizeof(str), fmt, arg_list);
|
||||||
va_end(arg_list);
|
va_end(arg_list);
|
||||||
gcs().send_statustext(severity, 0xFF, str);
|
gcs().send_statustext(severity, 0xFF, str);
|
||||||
notify.send_text(str);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue