Преглед изворни кода

Merge pull request #107 from mohammadhzp/master

Do not include esp_system.h on nodemcu
Frank Denis пре 4 година
родитељ
комит
463483dc0a
1 измењених фајлова са 3 додато и 2 уклоњено
  1. 3 2
      impl/random/esp32.h

+ 3 - 2
impl/random/esp32.h

@@ -1,7 +1,8 @@
 // Important: RF *must* be activated on ESP board
 // Important: RF *must* be activated on ESP board
 // https://techtutorialsx.com/2017/12/22/esp32-arduino-random-number-generation/
 // https://techtutorialsx.com/2017/12/22/esp32-arduino-random-number-generation/
-
-#include <esp_system.h>
+#ifdef ESP32
+# include <esp_system.h>
+#endif
 
 
 static int
 static int
 hydro_random_init(void)
 hydro_random_init(void)