瀏覽代碼

Merge pull request #2494 from uwl-cpe-2025/fix/missing-include

Add missing Wire.h include to sensors
Liam Cottle 3 月之前
父節點
當前提交
0800f8d677
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/helpers/sensors/EnvironmentSensorManager.cpp

+ 2 - 0
src/helpers/sensors/EnvironmentSensorManager.cpp

@@ -1,5 +1,7 @@
 #include "EnvironmentSensorManager.h"
 
+#include <Wire.h>
+
 #if ENV_PIN_SDA && ENV_PIN_SCL
 #define TELEM_WIRE &Wire1  // Use Wire1 as the I2C bus for Environment Sensors
 #else