From e437784362098ebe71e6c61703ca083ad9f40c50 Mon Sep 17 00:00:00 2001 From: Michael Buesch Date: Sat, 15 Jan 2011 23:42:39 +0100 Subject: Add common chip shutdown implementation Signed-off-by: Michael Buesch --- toprammer | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'toprammer') diff --git a/toprammer b/toprammer index dd42f07..23732db 100755 --- a/toprammer +++ b/toprammer @@ -201,9 +201,6 @@ def main(argv): if opt_action and opt_action != "print-list" and not opt_chipID: print "-c|--chip-id is mandatory!" return 1 - if not opt_action: - print "An action is mandatory!" - return 1 if not opt_informat in ("auto", "bin", "ihex", "hex"): print "Invalid -I|--in-format" return 1 @@ -246,7 +243,7 @@ def main(argv): elif opt_action == "write-ram": top.writeRAM(fileIn(opt_file, opt_informat)) else: - assert(0) + print "No action specified" top.shutdownChip() except (TOPException, BitfileException, IOError), e: print e -- cgit v1.2.3