iotappstory / ESP-Library

Software Distribution and Management Over the Air
GNU Lesser General Public License v2.1
124 stars 35 forks source link

Fix Dependency on ESPNexUpload #143

Closed Onno-Dirkzwager closed 4 years ago

Onno-Dirkzwager commented 4 years ago

Wrapped the code into an precompiler if statement to prevent the compiler from checking the code when OTA_UPD_CHECK_NEXTION is false and the Nextion library is not included:

include "../config.h"

if OTA_UPD_CHECK_NEXTION == true

... code ...

endif

This should fix the following issue: 2.1.0 Dependency on ESPNexUpload Library #129