Selaa lähdekoodia

Add missing Wire.h include for sensors

This slipped through in PR #2327 and I noticed because the TechoBoard.h
for my variant doesn't include the Wire header, so the source file
in question does not coincidentally obtain a copy.
Josiah VanderZee 3 kuukautta sitten
vanhempi
sitoutus
4b6b8abe7a
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  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