From 566b46592cd6d6ad453048f9aa830cd82fee9a6e Mon Sep 17 00:00:00 2001 From: Michael Buesch Date: Thu, 26 Apr 2012 20:47:28 +0200 Subject: Fix -I and -O parameter checks Signed-off-by: Michael Buesch --- toprammer | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toprammer') diff --git a/toprammer b/toprammer index 77beb0a..bdec6ee 100755 --- a/toprammer +++ b/toprammer @@ -214,10 +214,10 @@ def main(argv): 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"): + if not opt_informat in ("auto", "bin", "ihex", "ahex"): print "Invalid -I|--in-format" return 1 - if not opt_outformat in ("bin", "ihex", "hex"): + if not opt_outformat in ("bin", "ihex", "ahex"): print "Invalid -O|--out-format" return 1 -- cgit v1.2.3