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
97352463
Commit
97352463
authored
9 years ago
by
Oleg Hahm
Browse files
Options
Downloads
Plain Diff
Merge pull request #4603 from jfischer-phytec-iot/fix@kw2xrf-pkt-length
drivers/kw2xrf/kw2xrf.c: fix MAX_PKT_LENGTH
parents
94e4a08f
97120f1c
Branches
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
drivers/kw2xrf/kw2xrf.c
+3
-1
3 additions, 1 deletion
drivers/kw2xrf/kw2xrf.c
with
3 additions
and
1 deletion
drivers/kw2xrf/kw2xrf.c
+
3
−
1
View file @
97352463
...
@@ -40,6 +40,8 @@
...
@@ -40,6 +40,8 @@
#define MKW2XDRF_PA_RANGE_MAX 31
/**< Maximum value of PA Power Control Register */
#define MKW2XDRF_PA_RANGE_MAX 31
/**< Maximum value of PA Power Control Register */
#define MKW2XDRF_PA_RANGE_MIN 3
/**< Minimum value of PA Power Control Register */
#define MKW2XDRF_PA_RANGE_MIN 3
/**< Minimum value of PA Power Control Register */
#define _MAX_MHR_OVERHEAD (25)
/* PLL integer lookup table */
/* PLL integer lookup table */
static
const
uint8_t
pll_int_lt
[
16
]
=
{
static
const
uint8_t
pll_int_lt
[
16
]
=
{
11
,
11
,
11
,
11
,
11
,
11
,
11
,
11
,
...
@@ -642,7 +644,7 @@ int kw2xrf_get(gnrc_netdev_t *netdev, netopt_t opt, void *value, size_t max_len)
...
@@ -642,7 +644,7 @@ int kw2xrf_get(gnrc_netdev_t *netdev, netopt_t opt, void *value, size_t max_len)
return
-
EOVERFLOW
;
return
-
EOVERFLOW
;
}
}
*
((
uint16_t
*
)
value
)
=
KW2XRF_MAX_PKT_LENGTH
;
*
((
uint16_t
*
)
value
)
=
KW2XRF_MAX_PKT_LENGTH
-
_MAX_MHR_OVERHEAD
;
return
sizeof
(
uint16_t
);
return
sizeof
(
uint16_t
);
case
NETOPT_PRELOADING
:
case
NETOPT_PRELOADING
:
...
...
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