aboutsummaryrefslogtreecommitdiff
path: root/src/systemcmds
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-11-15 20:05:54 +0100
committerLorenz Meier <lm@inf.ethz.ch>2014-11-15 20:05:54 +0100
commite2551d491754b752b8b835a302acaf3f4cf1f9d6 (patch)
treeba86730620e71f194240e9e214f32dab262035eb /src/systemcmds
parented0f28ed4191c296aa3592088dc7875a8246cabb (diff)
downloadpx4-firmware-e2551d491754b752b8b835a302acaf3f4cf1f9d6.tar.gz
px4-firmware-e2551d491754b752b8b835a302acaf3f4cf1f9d6.tar.bz2
px4-firmware-e2551d491754b752b8b835a302acaf3f4cf1f9d6.zip
Fixed typo in ver command
Diffstat (limited to 'src/systemcmds')
-rw-r--r--src/systemcmds/ver/ver.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/systemcmds/ver/ver.c b/src/systemcmds/ver/ver.c
index 55cec149f..c794f5819 100644
--- a/src/systemcmds/ver/ver.c
+++ b/src/systemcmds/ver/ver.c
@@ -126,7 +126,6 @@ int ver_main(int argc, char *argv[])
if (chip_version < 0) {
printf("UNKNOWN MCU\n");
- ret = 1;
} else {
printf("MCU: %s, rev. %c\n", revstr, rev);
@@ -142,7 +141,7 @@ int ver_main(int argc, char *argv[])
ret = 0;
}
- if (ret = 1) {
+ if (ret == 1) {
errx(1, "unknown command.\n");
}