Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
E
euro-adc-65m-14b-40cha-gw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
eurocard
euro-adc-65m-14b-40cha
euro-adc-65m-14b-40cha-gw
Commits
059358b0
Commit
059358b0
authored
Aug 31, 2017
by
Dave Newbold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding config check for si****
parent
79eeb3c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
si5344.py
components/solid/software/si5344.py
+10
-10
No files found.
components/solid/software/si5344.py
View file @
059358b0
...
...
@@ -41,16 +41,16 @@ class si5344:
return
self
.
i2c
.
read
(
self
.
slaveaddr
,
2
)
def
parse_clk
(
self
,
filename
):
deletedcomments
=
""""""
with
open
(
filename
,
'rb'
)
as
configfile
:
for
i
,
line
in
enumerate
(
configfile
):
if
not
line
.
startswith
(
'#'
):
if
not
line
.
startswith
(
'Address'
):
deletedcomments
+=
line
csvfile
=
StringIO
.
StringIO
(
deletedcomments
)
cvr
=
csv
.
reader
(
csvfile
,
delimiter
=
','
,
quotechar
=
'|'
)
regSettingList
=
list
(
cvr
)
return
regSettingList
deletedcomments
=
""""""
with
open
(
filename
,
'rb'
)
as
configfile
:
for
i
,
line
in
enumerate
(
configfile
):
if
not
line
.
startswith
(
'#'
):
if
not
line
.
startswith
(
'Address'
):
deletedcomments
+=
line
csvfile
=
StringIO
.
StringIO
(
deletedcomments
)
cvr
=
csv
.
reader
(
csvfile
,
delimiter
=
','
,
quotechar
=
'|'
)
regSettingList
=
list
(
cvr
)
return
regSettingList
def
writeConfiguration
(
self
,
regSettingList
):
for
item
in
regSettingList
:
...
...
Write
Preview
Markdown
is supported
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