diff options
-rw-r--r-- | Documentation/flight_mode_state_machine.odg | bin | 18105 -> 18452 bytes | |||
-rw-r--r-- | makefiles/config_px4fmu-v1_default.mk | 1 | ||||
-rw-r--r-- | src/systemcmds/ramtron/ramtron.c | 11 |
3 files changed, 12 insertions, 0 deletions
diff --git a/Documentation/flight_mode_state_machine.odg b/Documentation/flight_mode_state_machine.odg Binary files differindex b630ecb40..f9fa7a032 100644 --- a/Documentation/flight_mode_state_machine.odg +++ b/Documentation/flight_mode_state_machine.odg diff --git a/makefiles/config_px4fmu-v1_default.mk b/makefiles/config_px4fmu-v1_default.mk index 74be1cd23..3f88b8c8c 100644 --- a/makefiles/config_px4fmu-v1_default.mk +++ b/makefiles/config_px4fmu-v1_default.mk @@ -39,6 +39,7 @@ MODULES += modules/sensors # System commands # MODULES += systemcmds/eeprom +MODULES += systemcmds/ramtron MODULES += systemcmds/bl_update MODULES += systemcmds/boardinfo MODULES += systemcmds/i2c diff --git a/src/systemcmds/ramtron/ramtron.c b/src/systemcmds/ramtron/ramtron.c index 5e9499c55..03c713987 100644 --- a/src/systemcmds/ramtron/ramtron.c +++ b/src/systemcmds/ramtron/ramtron.c @@ -63,6 +63,15 @@ __EXPORT int ramtron_main(int argc, char *argv[]); +#ifndef CONFIG_MTD_RAMTRON + +/* create a fake command with decent message to not confuse users */ +int ramtron_main(int argc, char *argv[]) +{ + errx(1, "RAMTRON not enabled, skipping."); +} +#else + static void ramtron_attach(void); static void ramtron_start(void); static void ramtron_erase(void); @@ -266,3 +275,5 @@ ramtron_test(void) // at24c_test(); exit(0); } + +#endif |