2c38e31c93
The PSTR is already define as a NOP for all supported platforms. It's only needed for AVR so here we remove all the uses throughout the codebase. This was automated with a simple python script so it also converts places which spans to multiple lines, removing the matching parentheses. AVR-specific places were not changed.
24 lines
491 B
C++
24 lines
491 B
C++
#include <AP_HAL/AP_HAL.h>
|
|
#include <AP_Common/AP_Common.h>
|
|
#include <AP_Progmem/AP_Progmem.h>
|
|
#include <AP_Param/AP_Param.h>
|
|
#include <AP_Math/AP_Math.h>
|
|
|
|
#include <AP_HAL_FLYMAPLE/AP_HAL_FLYMAPLE.h>
|
|
|
|
const AP_HAL::HAL& hal = AP_HAL::get_HAL();
|
|
|
|
void setup() {
|
|
hal.scheduler->delay(5000);
|
|
hal.console->println_P("Empty setup");
|
|
}
|
|
void loop()
|
|
{
|
|
hal.console->println_P("loop");
|
|
hal.console->printf("hello %d\n", 1234);
|
|
hal.scheduler->delay(1000);
|
|
}
|
|
|
|
AP_HAL_MAIN();
|
|
|