summaryrefslogtreecommitdiffstats
path: root/toprammer
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2011-01-17 13:56:15 +0100
committerMichael Buesch <mb@bu3sch.de>2011-01-17 13:56:15 +0100
commite848172ba58da56d1ed415052f87498e481999f7 (patch)
tree2a2a705ca6d527e07264d107a3301e8b3d2a7be9 /toprammer
parent6ceaa6e1c7e378282a6235bb206fb8daa9a8327f (diff)
downloadtoprammer-e848172ba58da56d1ed415052f87498e481999f7.tar.xz
toprammer-e848172ba58da56d1ed415052f87498e481999f7.zip
Fix chipID sanity check
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Diffstat (limited to 'toprammer')
-rwxr-xr-xtoprammer2
1 files changed, 1 insertions, 1 deletions
diff --git a/toprammer b/toprammer
index cde6a90..76ef562 100755
--- a/toprammer
+++ b/toprammer
@@ -201,7 +201,7 @@ def main(argv):
except (getopt.GetoptError, ValueError), e:
usage()
return 1
- if opt_action and opt_action != "print-list" and not opt_chipID:
+ if opt_action != "print-list" and not opt_chipID:
print "-c|--chip-id is mandatory!"
return 1
if not opt_informat in ("auto", "bin", "ihex", "hex"):
bues.ch cgit interface