Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
fmc dac 600m 12b 1cha dds - Testing
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
fmc dac 600m 12b 1cha dds - Testing
Commits
e9498760
Commit
e9498760
authored
May 19, 2022
by
Marek Gumiński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A change that enables running tests from interactive terminal.
Useful for debugging.
parent
758e7e4f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
spec.py
python/spec.py
+5
-2
No files found.
python/spec.py
View file @
e9498760
...
...
@@ -33,7 +33,10 @@ class spec:
def
__init__
(
self
,
firmware
,
bus
=
-
1
,
allwaysload
=
True
):
self
.
cwd
=
os
.
path
.
dirname
(
__file__
)
#the above dosn't work when code is sourced after importing it in python interactive terminal
if
self
.
cwd
==
""
:
self
.
cwd
=
os
.
getcwd
()
self
.
bus
=
bus
;
self
.
firmware
=
firmware
;
...
...
@@ -227,4 +230,4 @@ class spec:
def
read_ow
(
self
,
addr
):
# print "SPEC: reading addr: %d" % addr
return
self
.
speclib
.
spec_readl
(
c_void_p
(
self
.
card
),
c_uint32
(
self
.
ONEWIRE_ADDR
+
addr
)
);
\ No newline at end of file
return
self
.
speclib
.
spec_readl
(
c_void_p
(
self
.
card
),
c_uint32
(
self
.
ONEWIRE_ADDR
+
addr
)
);
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