Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
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
RIOT
Commits
f6e616d4
Unverified
Commit
f6e616d4
authored
6 years ago
by
Alexandre Abadie
Browse files
Options
Downloads
Patches
Plain Diff
tests/pkg_semtech-loramac: fix send return value management
parent
afc85e3d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/pkg_semtech-loramac/main.c
+11
-3
11 additions, 3 deletions
tests/pkg_semtech-loramac/main.c
with
11 additions
and
3 deletions
tests/pkg_semtech-loramac/main.c
+
11
−
3
View file @
f6e616d4
...
...
@@ -414,15 +414,23 @@ static int _cmd_loramac(int argc, char **argv)
switch
(
semtech_loramac_send
(
&
loramac
,
(
uint8_t
*
)
argv
[
2
],
strlen
(
argv
[
2
])))
{
case
SEMTECH_LORAMAC_NOT_JOINED
:
puts
(
"Failed: not joined"
);
puts
(
"Cannot send: not joined"
);
return
1
;
case
SEMTECH_LORAMAC_DUTYCYCLE_RESTRICTED
:
puts
(
"Cannot send: dutycycle restriction"
);
return
1
;
case
SEMTECH_LORAMAC_BUSY
:
puts
(
"Failed: mac is busy"
);
puts
(
"Cannot send: MAC is busy"
);
return
1
;
case
SEMTECH_LORAMAC_TX_ERROR
:
puts
(
"Cannot send: error"
);
return
1
;
}
/*
clear the rx buffer of the mac
*/
/*
wait for receive windows
*/
switch
(
semtech_loramac_recv
(
&
loramac
))
{
case
SEMTECH_LORAMAC_DATA_RECEIVED
:
loramac
.
rx_data
.
payload
[
loramac
.
rx_data
.
payload_len
]
=
0
;
...
...
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