Plane: use gcs_send_text_fmt() for SCHED_DEBUG timing

lets values be saved in mavlink logs
This commit is contained in:
Andrew Tridgell 2014-08-18 21:15:42 +10:00
parent c87b0adc29
commit 79fa22e4ad
1 changed files with 1 additions and 1 deletions

View File

@ -1029,7 +1029,7 @@ static void one_second_loop()
static void log_perf_info()
{
if (scheduler.debug() != 0) {
hal.console->printf_P(PSTR("G_Dt_max=%lu\n"), (unsigned long)G_Dt_max);
gcs_send_text_fmt(PSTR("G_Dt_max=%lu\n"), (unsigned long)G_Dt_max);
}
if (should_log(MASK_LOG_PM))
Log_Write_Performance();