-
-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add patch for BMP5 sensor API to fix an uninitialized variable warning
- Loading branch information
Showing
5 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
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
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,13 @@ | ||
diff --git a/BMP5-Sensor-API/bmp5.c b/BMP5-Sensor-API/bmp5.c | ||
index 6af2f6a..e62172a 100644 | ||
--- a/BMP5-Sensor-API/bmp5.c | ||
+++ b/BMP5-Sensor-API/bmp5.c | ||
@@ -1130,7 +1130,7 @@ int8_t bmp5_get_fifo_len(uint16_t *fifo_len, struct bmp5_fifo *fifo, struct bmp5 | ||
int8_t bmp5_get_fifo_data(struct bmp5_fifo *fifo, struct bmp5_dev *dev) | ||
{ | ||
int8_t rslt; | ||
- uint16_t fifo_len; | ||
+ uint16_t fifo_len = 0; | ||
|
||
if (fifo != NULL) | ||
{ |
File renamed without changes.
File renamed without changes.
File renamed without changes.