-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2765adb
commit efb683f
Showing
2 changed files
with
9 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
#pragma once | ||
|
||
#if defined(ARDUINO) | ||
#if !defined(ARDUINO_ARCH_ESP32) | ||
#error "This library only supports boards from the ESP32 family." | ||
#elif ESP_ARDUINO_VERSION < ESP_ARDUINO_VERSION_VAL(3, 0, 3) | ||
#error "This library requires ESP32 Arduino Core version 3.0.3 or newer. Please upgrade your board/platform." | ||
#endif | ||
#endif | ||
|
||
// User-facing API is defined in the | ||
// "husarnet/port/esp32/user_interface.h" header | ||
// in the included Husarnet submodule. | ||
#include "husarnet/ports/esp32/user_interface.h" | ||
|
||
#if defined(ARDUINO) && !defined(ARDUINO_ARCH_ESP32) | ||
#error "This library only supports boards from the ESP32 family." | ||
#endif |