1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

* added reset command to pyterm

This commit is contained in:
Oleg 2010-11-08 01:23:04 +01:00
parent 33a7e40c18
commit be102b6a7d

View File

@ -15,7 +15,13 @@ class MyCmd(cmd.Cmd):
def complete_date(self, text, line, begidx, endidm):
date = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
return ["%s\n" % date]
return ["%s" % date]
def do_reset(self, line):
ser.setDTR(1)
ser.setRTS(1)
ser.setDTR(0)
ser.setRTS(0)
def do_exit(self, line):
sys.exit(0)