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
9feceb29
Commit
9feceb29
authored
7 years ago
by
Alexandre Abadie
Browse files
Options
Downloads
Patches
Plain Diff
tests/driver_sx127x: use common LoRa definitions
parent
91bed82a
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/driver_sx127x/main.c
+4
-3
4 additions, 3 deletions
tests/driver_sx127x/main.c
with
4 additions
and
3 deletions
tests/driver_sx127x/main.c
+
4
−
3
View file @
9feceb29
...
...
@@ -31,6 +31,7 @@
#include
"net/gnrc/netdev.h"
#include
"net/netdev.h"
#include
"net/lora.h"
#include
"board.h"
#include
"periph/rtc.h"
...
...
@@ -67,17 +68,17 @@ int lora_setup_cmd(int argc, char **argv) {
switch
(
bw
)
{
case
125
:
puts
(
"setup: setting 125KHz bandwidth"
);
lora_bw
=
SX127X
_BW_125_KHZ
;
lora_bw
=
LORA
_BW_125_KHZ
;
break
;
case
250
:
puts
(
"setup: setting 250KHz bandwidth"
);
lora_bw
=
SX127X
_BW_250_KHZ
;
lora_bw
=
LORA
_BW_250_KHZ
;
break
;
case
500
:
puts
(
"setup: setting 500KHz bandwidth"
);
lora_bw
=
SX127X
_BW_500_KHZ
;
lora_bw
=
LORA
_BW_500_KHZ
;
break
;
default:
...
...
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