ソースを参照

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