-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9682 from cladmi/2018.07/pr/loramac_patch
semtech-loramac: fix uninitialized datarate [backport 2018.07]
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
pkg/semtech-loramac/patches/0004-fix-uninitialized-variable.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
From 9bf864033dfe765f0e06603e273c4665af777a1a Mon Sep 17 00:00:00 2001 | ||
From: Jose Alamos <jose.alamos@haw-hamburg.de> | ||
Date: Tue, 24 Jul 2018 11:47:59 +0200 | ||
Subject: [PATCH] fix uninitialized variable | ||
|
||
--- | ||
src/mac/LoRaMac.c | 2 ++ | ||
1 file changed, 2 insertions(+) | ||
|
||
diff --git a/src/mac/LoRaMac.c b/src/mac/LoRaMac.c | ||
index 4cb2c50..46f7661 100644 | ||
--- a/src/mac/LoRaMac.c | ||
+++ b/src/mac/LoRaMac.c | ||
@@ -3266,6 +3266,8 @@ LoRaMacStatus_t LoRaMacMcpsRequest( McpsReq_t *mcpsRequest ) | ||
break; | ||
} | ||
default: | ||
+ /* Shouldn't happen */ | ||
+ datarate = 0; | ||
break; | ||
} | ||
|
||
-- | ||
2.16.0 | ||
|