summaryrefslogtreecommitdiffstats
path: root/toprammer
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2011-01-15 23:42:39 +0100
committerMichael Buesch <mb@bu3sch.de>2011-01-15 23:42:39 +0100
commite437784362098ebe71e6c61703ca083ad9f40c50 (patch)
treef08eda583a94b57466a8d89c13fa3ec33b9804fc /toprammer
parent6774e5978c149e858bfc45446bfed8249a491b72 (diff)
downloadtoprammer-e437784362098ebe71e6c61703ca083ad9f40c50.tar.xz
toprammer-e437784362098ebe71e6c61703ca083ad9f40c50.zip
Add common chip shutdown implementation
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Diffstat (limited to 'toprammer')
-rwxr-xr-xtoprammer5
1 files changed, 1 insertions, 4 deletions
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
bues.ch cgit interface