Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ieee802154-radio-eval
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
ieee802154-radio-eval
Commits
0983c087
Commit
0983c087
authored
3 years ago
by
Torben Petersen
Browse files
Options
Downloads
Patches
Plain Diff
Changed order of args for handle_serial_rx, now hands over the code_id
parent
f796258c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
software/coordinator2.py
+4
-4
4 additions, 4 deletions
software/coordinator2.py
with
4 additions
and
4 deletions
software/coordinator2.py
+
4
−
4
View file @
0983c087
...
...
@@ -157,7 +157,7 @@ def handle_match_rx_corrupt( src_id, ts, match_rx_corrupt, temp ):
db_lock
.
release
()
return
True
def
handle_serial_rx
(
src_id
,
ts
,
line
,
temp
):
def
handle_serial_rx
(
src_id
,
ts
,
temp
,
line
):
global
eval_round
if
eval_round
is
None
:
...
...
@@ -300,7 +300,7 @@ class PRREvalClient(Thread):
else
:
self
.
logger
.
warning
(
"
Connected to unexspected mqtt server!
"
)
def
on_message
(
self
,
client
,
userdata
,
msg
):
topic
=
msg
.
topic
.
split
(
'
/
'
)
if
msg
.
topic
==
self
.
HUB_ONE_DISCOVERY_ANSWER_TOPIC
or
msg
.
topic
==
self
.
HUB_TWO_DISCOVERY_ANSWER_TOPIC
:
...
...
@@ -361,10 +361,10 @@ class PRREvalClient(Thread):
#write it to the DB!
if
userdata
==
self
.
chamber_one_logger_pi
:
handle_serial_rx
(
node_
serial
_id
,
ts
,
line
,
self
.
chamber_one_temp
)
handle_serial_rx
(
node_
code
_id
,
ts
,
self
.
chamber_one_temp
,
line
)
elif
userdata
==
self
.
chamber_two_logger_pi
:
handle_serial_rx
(
node_
serial
_id
,
ts
,
line
,
self
.
chamber_two_temp
)
handle_serial_rx
(
node_
code
_id
,
ts
,
self
.
chamber_two_temp
,
line
)
else
:
self
.
logger
.
warning
(
"
Got node message from unknown source!
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment