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:
parent
33a7e40c18
commit
be102b6a7d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user