Merge pull request #61 from Hieromon/master

Fixed compile error with older than ESP8266 core 2.5.0
pull/66/head^2
Hieromon Ikasamo 6 years ago committed by GitHub
commit 2c7265320b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/AutoConnectUploadImpl.h

@ -11,6 +11,7 @@
#define _AUTOCONNECTUPLOADIMPL_H_
#if defined(ARDUINO_ARCH_ESP8266)
#include <core_version.h>
#include <ESP8266WiFi.h>
#elif defined(ARDUINO_ARCH_ESP32)
#include <WiFi.h>
@ -132,7 +133,9 @@ class AutoConnectUploadSD : public AutoConnectUploadHandler {
void _close(void) override {
if (_file)
_file.close();
#if defined(ARDUINO_ARCH_ESP32) || (defined(ARDUINO_ARCH_ESP8266) && (!defined(ARDUINO_ESP8266_RELEASE_2_4_0) && !defined(ARDUINO_ESP8266_RELEASE_2_4_1) && !defined(ARDUINO_ESP8266_RELEASE_2_4_2)))
_media->end();
#endif
}
private:

Loading…
Cancel
Save