Move #ifdef to after header include (#2417)

defines.h needs to be included first.

Fixes esphome/issues#2490.
This commit is contained in:
Oxan van Leeuwen 2021-09-29 23:21:52 +02:00 committed by GitHub
parent 505d1d78fb
commit 4f5e4f3b86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
#include "nextion.h"
#ifdef USE_NEXTION_TFT_UPLOAD
#include "nextion.h"
#include "esphome/core/application.h"
#include "esphome/core/macros.h"
#include "esphome/core/util.h"