Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
Conv TTL RS485 - Testing
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
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
Conv TTL RS485 - Testing
Commits
bef644d6
Commit
bef644d6
authored
Dec 02, 2014
by
Theodor-Adrian Stana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw: Changed outputs display in RS485 test to reflect loopbacks in schematics
parent
05661a03
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
rs485_pulse_rtm.py
pts/python/rs485_pulse_rtm.py
+7
-1
No files found.
pts/python/rs485_pulse_rtm.py
View file @
bef644d6
...
...
@@ -135,7 +135,13 @@ def check_counters(bus, inf, pel):
pel
.
set
(
msg
)
def
pulse_test
(
bus
,
inf
,
pel
,
output
,
term
):
msg
=
"Testing channel connections (term.
%
s): Out
%
d -> In"
%
(
term
,
output
)
if
(
output
==
1
):
disp
=
3
elif
(
output
==
2
):
disp
=
2
elif
(
output
==
3
):
disp
=
1
msg
=
"Testing channel connections (term.
%
s): Out
%
d -> In"
%
(
term
,
disp
)
print
(
msg
)
mux_sel
(
bus
,
output
)
clear_counters
(
bus
)
...
...
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