diff --git a/src/custom/my_custom_fan_template.cpp b/src/custom/my_custom_fan_template.cpp index 016da86c..f3ee7f13 100644 --- a/src/custom/my_custom_fan_template.cpp +++ b/src/custom/my_custom_fan_template.cpp @@ -58,7 +58,7 @@ void custom_every_5seconds() // Unused } -bool custom_pin_in_use(uint pin) +bool custom_pin_in_use(uint8_t pin) { // no pins are used return false; diff --git a/src/custom/my_custom_template.cpp b/src/custom/my_custom_template.cpp index d7e1a3c6..f6fea5cf 100644 --- a/src/custom/my_custom_template.cpp +++ b/src/custom/my_custom_template.cpp @@ -32,7 +32,7 @@ void custom_every_5seconds() 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 diff --git a/src/sys/gpio/hasp_gpio.cpp b/src/sys/gpio/hasp_gpio.cpp index 43e262fc..b28fbec5 100644 --- a/src/sys/gpio/hasp_gpio.cpp +++ b/src/sys/gpio/hasp_gpio.cpp @@ -8,6 +8,10 @@ #include "hasp_gpio.h" #include "hasp_config.h" +#if defined(HASP_USE_CUSTOM) +#include "custom/my_custom.h" +#endif + #ifdef ARDUINO_ARCH_ESP8266 #define INPUT_PULLDOWN INPUT #endif