From 093d5b3108b4dd27612222eb99ff2790c96886be Mon Sep 17 00:00:00 2001
From: Angelo Prete <angelo.prete@skywarder.eu>
Date: Sat, 9 Mar 2024 19:45:41 +0100
Subject: [PATCH] [BMX160] Increased fifo size

---
 src/shared/sensors/BMX160/BMX160.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/shared/sensors/BMX160/BMX160.h b/src/shared/sensors/BMX160/BMX160.h
index b4a3864ab..1724df988 100644
--- a/src/shared/sensors/BMX160/BMX160.h
+++ b/src/shared/sensors/BMX160/BMX160.h
@@ -339,8 +339,8 @@ private:
 
     int tempCounter = 0;
 
-    // Sometimes the buffer gets over 1000
-    static constexpr unsigned int FIFO_BUF_SIZE = 1100;
+    // Sometimes the buffer gets over 1000 and the fifo's size assertion fails.
+    static constexpr unsigned int FIFO_BUF_SIZE = 2100;
 
     /**
      * Sometimes the sensor pulls down the interrupt pin while reading data.
-- 
GitLab