diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-07-17 07:57:02 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-07-17 07:57:02 +0200 |
commit | e86e2a093861e51fde836f8cd383b09536ca0542 (patch) | |
tree | 80b629cc0f2c641f14c01e379948044bc4262dc3 /src/drivers/px4io | |
parent | 35a519a2ea36f6ae69a2084428cdff6ed91e7b07 (diff) | |
download | px4-firmware-e86e2a093861e51fde836f8cd383b09536ca0542.tar.gz px4-firmware-e86e2a093861e51fde836f8cd383b09536ca0542.tar.bz2 px4-firmware-e86e2a093861e51fde836f8cd383b09536ca0542.zip |
Add additional file name options
Diffstat (limited to 'src/drivers/px4io')
-rw-r--r-- | src/drivers/px4io/px4io.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/drivers/px4io/px4io.cpp b/src/drivers/px4io/px4io.cpp index 8f8555f1f..1e00f9668 100644 --- a/src/drivers/px4io/px4io.cpp +++ b/src/drivers/px4io/px4io.cpp @@ -1890,7 +1890,7 @@ px4io_main(int argc, char *argv[]) } PX4IO_Uploader *up; - const char *fn[3]; + const char *fn[5]; /* work out what we're uploading... */ if (argc > 2) { @@ -1900,7 +1900,9 @@ px4io_main(int argc, char *argv[]) } else { fn[0] = "/fs/microsd/px4io.bin"; fn[1] = "/etc/px4io.bin"; - fn[2] = nullptr; + fn[2] = "/fs/microsd/px4io2.bin"; + fn[3] = "/etc/px4io2.bin"; + fn[4] = nullptr; } up = new PX4IO_Uploader; |