Skip to content

Commit

Permalink
Add patch for BMP5 sensor API to fix an uninitialized variable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Kampi committed Aug 6, 2024
1 parent f7347e1 commit fb04e75
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions app/patches/bmp5.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/src/ext_drivers/BMP5-Sensor-API/bmp5.c a/src/ext_drivers/BMP5-Sensor-API/bmp5.c
index 6af2f6a..e62172a 100644
--- a/src/ext_drivers/BMP5-Sensor-API/bmp5.c
+++ b/src/ext_drivers/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)
{

0 comments on commit fb04e75

Please sign in to comment.