Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
ca045d97
Commit
ca045d97
authored
Apr 21, 2014
by
Damien George
Browse files
tools: Update pyboard.py to work with latest changes to RTC.
parent
5ea69859
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/pyboard.py
View file @
ca045d97
...
...
@@ -89,8 +89,8 @@ class Pyboard:
return
self
.
exec
(
pyfile
)
def
get_time
(
self
):
t
=
str
(
self
.
e
xec
(
'pyb.time()'
),
encoding
=
'ascii'
)
.
strip
().
split
()[
1
].
split
(
'
:
'
)
return
int
(
t
[
0
])
*
3600
+
int
(
t
[
1
])
*
60
+
int
(
t
[
2
])
t
=
str
(
self
.
e
val
(
'pyb.
RTC().date
time()'
),
encoding
=
'ascii'
)
[
1
:
-
1
].
split
(
'
,
'
)
return
int
(
t
[
4
])
*
3600
+
int
(
t
[
5
])
*
60
+
int
(
t
[
6
])
def
execfile
(
filename
,
device
=
'/dev/ttyACM0'
):
pyb
=
Pyboard
(
device
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment