Skip to content

Commit

Permalink
Add ESP8266 special configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ngraziano committed Feb 19, 2022
1 parent dca6c85 commit f84ec73
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/boardconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@


#ifndef LMIC_HAL_IO
// Same IO style for all boards
#define LMIC_HAL_IO LMIC_ARDUINO
#endif


// ESP32 using Arduino
#ifdef ARDUINO_ARCH_ESP32
// ESP32 ans ESP8266 using Arduino : use gettimeofday
#if defined(ARDUINO_ARCH_ESP32) || defined(ARDUINO_ARCH_ESP8266)
#ifndef LMIC_HAL
#define LMIC_HAL LMIC_ESP32
#endif
Expand All @@ -27,7 +28,7 @@

#endif

// not arduino
// not arduino just to compile
#else
#ifndef LMIC_HAL
#define LMIC_HAL LMIC_GENERIC
Expand Down

0 comments on commit f84ec73

Please sign in to comment.