Fix ccompile error due to missing include

This commit is contained in:
fvanroie 2021-10-09 23:30:00 +02:00
parent 917fe508b3
commit 358a45f6f3
3 changed files with 6 additions and 2 deletions

View File

@ -58,7 +58,7 @@ void custom_every_5seconds()
// Unused // Unused
} }
bool custom_pin_in_use(uint pin) bool custom_pin_in_use(uint8_t pin)
{ {
// no pins are used // no pins are used
return false; return false;

View File

@ -32,7 +32,7 @@ void custom_every_5seconds()
dispatch_state_subtopic("my_sensor","{\"test\":123}"); dispatch_state_subtopic("my_sensor","{\"test\":123}");
} }
bool custom_pin_in_use(uint pin) bool custom_pin_in_use(uint8_t pin)
{ {
if(pin == 1024) return true; // fictuous used pin if(pin == 1024) return true; // fictuous used pin

View File

@ -8,6 +8,10 @@
#include "hasp_gpio.h" #include "hasp_gpio.h"
#include "hasp_config.h" #include "hasp_config.h"
#if defined(HASP_USE_CUSTOM)
#include "custom/my_custom.h"
#endif
#ifdef ARDUINO_ARCH_ESP8266 #ifdef ARDUINO_ARCH_ESP8266
#define INPUT_PULLDOWN INPUT #define INPUT_PULLDOWN INPUT
#endif #endif