diff options
author | px4dev <px4@purgatory.org> | 2013-01-19 11:43:03 -0800 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2013-01-19 11:43:03 -0800 |
commit | 044e1a325a8718d41ac52f85ca9d3e79b32213ca (patch) | |
tree | 0c03692dab22b3be8c309590c17e8c5862df50a2 /apps/systemcmds/eeprom/eeprom.c | |
parent | af9b26f04d90d86a1afae7a06e8ec98fa8684087 (diff) | |
parent | 6cc840a95b19e84082017cfa5e7550e27f0e756d (diff) | |
download | px4-firmware-044e1a325a8718d41ac52f85ca9d3e79b32213ca.tar.gz px4-firmware-044e1a325a8718d41ac52f85ca9d3e79b32213ca.tar.bz2 px4-firmware-044e1a325a8718d41ac52f85ca9d3e79b32213ca.zip |
Merge branch 'master' into px4io-i2c
Diffstat (limited to 'apps/systemcmds/eeprom/eeprom.c')
-rw-r--r-- | apps/systemcmds/eeprom/eeprom.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/systemcmds/eeprom/eeprom.c b/apps/systemcmds/eeprom/eeprom.c index b4257cda9..49da51358 100644 --- a/apps/systemcmds/eeprom/eeprom.c +++ b/apps/systemcmds/eeprom/eeprom.c @@ -73,6 +73,7 @@ static void eeprom_erase(void); static void eeprom_ioctl(unsigned operation); static void eeprom_save(const char *name); static void eeprom_load(const char *name); +static void eeprom_test(void); static bool attached = false; static bool started = false; @@ -93,6 +94,9 @@ int eeprom_main(int argc, char *argv[]) if (!strcmp(argv[1], "erase")) eeprom_erase(); + if (!strcmp(argv[1], "test")) + eeprom_test(); + if (0) { /* these actually require a file on the filesystem... */ if (!strcmp(argv[1], "reformat")) @@ -250,3 +254,12 @@ eeprom_load(const char *name) exit(0); } + +extern void at24c_test(void); + +static void +eeprom_test(void) +{ + at24c_test(); + exit(0); +} |