We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ae9146 commit 4a2cc12Copy full SHA for 4a2cc12
src/hackair.cpp
@@ -143,7 +143,9 @@ void hackAIR::clearData(hackAirData &data) {
143
}
144
145
void hackAIR::enablePowerControl() {
146
+#ifndef ESP8266
147
pinMode(A2, OUTPUT);
148
+#endif
149
150
151
void hackAIR::turnOn() {
@@ -152,7 +154,9 @@ void hackAIR::turnOn() {
152
154
// Send anything to wake up the sensor
153
155
_serial.write(0x01);
156
} else {
157
158
digitalWrite(A2, HIGH);
159
160
161
162
@@ -169,6 +173,8 @@ void hackAIR::turnOff() {
169
173
_serial.flush();
170
174
while (_serial.read() != -1) {}
171
175
176
172
177
digitalWrite(A2, LOW);
178
179
180
0 commit comments