Browse Source

Replace use of vprintf_P() with vprintf()

master
Lucas De Marchi 9 years ago committed by Randy Mackay
parent
commit
7ceffb1e2b
  1. 2
      libraries/AP_HAL_Empty/Scheduler.cpp
  2. 2
      libraries/AP_HAL_FLYMAPLE/Scheduler.cpp
  3. 2
      libraries/AP_HAL_SITL/Scheduler.cpp
  4. 2
      libraries/AP_InertialSensor/AP_InertialSensor_UserInteract_Stream.cpp

2
libraries/AP_HAL_Empty/Scheduler.cpp

@ -76,7 +76,7 @@ void EmptyScheduler::panic(const prog_char_t *errormsg, ...) @@ -76,7 +76,7 @@ void EmptyScheduler::panic(const prog_char_t *errormsg, ...)
va_list ap;
va_start(ap, errormsg);
hal.console->vprintf_P(errormsg, ap);
hal.console->vprintf(errormsg, ap);
va_end(ap);
hal.console->printf_P("\n");

2
libraries/AP_HAL_FLYMAPLE/Scheduler.cpp

@ -239,7 +239,7 @@ void FLYMAPLEScheduler::panic(const prog_char_t *errormsg, ...) { @@ -239,7 +239,7 @@ void FLYMAPLEScheduler::panic(const prog_char_t *errormsg, ...) {
_timer_suspended = true;
va_start(ap, errormsg);
hal.console->vprintf_P(errormsg, ap);
hal.console->vprintf(errormsg, ap);
va_end(ap);
hal.console->printf_P("\n");

2
libraries/AP_HAL_SITL/Scheduler.cpp

@ -264,7 +264,7 @@ void SITLScheduler::panic(const prog_char_t *errormsg, ...) @@ -264,7 +264,7 @@ void SITLScheduler::panic(const prog_char_t *errormsg, ...)
va_list ap;
va_start(ap, errormsg);
hal.console->vprintf_P(errormsg, ap);
hal.console->vprintf(errormsg, ap);
va_end(ap);
hal.console->printf_P("\n");

2
libraries/AP_InertialSensor/AP_InertialSensor_UserInteract_Stream.cpp

@ -21,7 +21,7 @@ void AP_InertialSensor_UserInteractStream::_printf_P( @@ -21,7 +21,7 @@ void AP_InertialSensor_UserInteractStream::_printf_P(
const prog_char* fmt, ...) {
va_list ap;
va_start(ap, fmt);
_s->vprintf_P(fmt, ap);
_s->vprintf(fmt, ap);
va_end(ap);
}

Loading…
Cancel
Save