diff options
author | px4dev <px4@purgatory.org> | 2012-10-09 22:45:36 -0700 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2012-10-09 22:45:36 -0700 |
commit | 1e59a592a6a41a65e9e69814ae3d8cb62a061367 (patch) | |
tree | 5d17bc01ecdd597b7d6c86c18e2ca827050abb51 /apps/systemcmds/eeprom | |
parent | bd3f3b10317f58d20f635f4a3e6aee8fca8d9d2b (diff) | |
download | px4-firmware-1e59a592a6a41a65e9e69814ae3d8cb62a061367.tar.gz px4-firmware-1e59a592a6a41a65e9e69814ae3d8cb62a061367.tar.bz2 px4-firmware-1e59a592a6a41a65e9e69814ae3d8cb62a061367.zip |
Split the parameter load/save commands out of the 'eeprom' command, since that's not really the obvious place for them. Add parameter printing functionality (though, it's a mess due to %f being busted)
Update the script examples to use the new command.
Diffstat (limited to 'apps/systemcmds/eeprom')
-rw-r--r-- | apps/systemcmds/eeprom/eeprom.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/systemcmds/eeprom/eeprom.c b/apps/systemcmds/eeprom/eeprom.c index a0b15f77b..fa88fa09e 100644 --- a/apps/systemcmds/eeprom/eeprom.c +++ b/apps/systemcmds/eeprom/eeprom.c @@ -193,6 +193,8 @@ eeprom_save(const char *name) if (!name) err(1, "missing argument for device name, try '/eeprom/parameters'"); + warnx("WARNING: 'eeprom save_param' deprecated - use 'param save' instead"); + /* delete the file in case it exists */ unlink(name); @@ -222,6 +224,8 @@ eeprom_load(const char *name) if (!name) err(1, "missing argument for device name, try '/eeprom/parameters'"); + warnx("WARNING: 'eeprom load_param' deprecated - use 'param load' instead"); + int fd = open(name, O_RDONLY); if (fd < 0) |