mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-25 12:16:42 +00:00
Check HASP_USE_GPIO in dispatch_gpio
This commit is contained in:
parent
ba8f3f017c
commit
1bd4e691ac
@ -208,6 +208,8 @@ static inline bool dispatch_parse_button_attribute(const char* topic_p, const ch
|
|||||||
|
|
||||||
static void dispatch_gpio(const char* topic, const char* payload)
|
static void dispatch_gpio(const char* topic, const char* payload)
|
||||||
{
|
{
|
||||||
|
#if HASP_USE_GPIO > 0
|
||||||
|
|
||||||
int16_t val;
|
int16_t val;
|
||||||
uint8_t pin;
|
uint8_t pin;
|
||||||
|
|
||||||
@ -238,6 +240,7 @@ static void dispatch_gpio(const char* topic, const char* payload)
|
|||||||
} else {
|
} else {
|
||||||
LOG_WARNING(TAG_MSGR, F("Invalid pin %s"), topic);
|
LOG_WARNING(TAG_MSGR, F("Invalid pin %s"), topic);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// objectattribute=value
|
// objectattribute=value
|
||||||
|
Loading…
x
Reference in New Issue
Block a user