Skip to content

Commit 2fe62f5

Browse files
author
brentru
committed
enforce deepsleep sketch only on esp8266 targets
1 parent 54ca7aa commit 2fe62f5

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

examples/adafruitio_19_deepsleep/adafruitio_19_deepsleep.ino

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ void setup() {
3838
Serial.println("sleeping...");
3939
// Put the Huzzah into deepsleep for DEEPSLEEP_DURATION
4040
// NOTE: Make sure Pin 16 is connected to RST
41-
ESP.deepSleep(1000000 * 2);
41+
#if defined(ESP8266)
42+
ESP.deepSleep(1000000 * 2);
43+
#else
44+
Serial.println("This example is not compatible with your hardware.");
45+
#endif
4246
}
4347

4448
// NOOP

0 commit comments

Comments
 (0)