mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
Add HASP_USE_GPIO
This commit is contained in:
parent
9015d6620f
commit
4a1d2a3ece
@ -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)
|
||||
{
|
||||
#if HASP_USE_GPIO > 0
|
||||
|
||||
int16_t val;
|
||||
uint8_t pin;
|
||||
|
||||
@ -238,6 +240,7 @@ static void dispatch_gpio(const char* topic, const char* payload)
|
||||
} else {
|
||||
LOG_WARNING(TAG_MSGR, F("Invalid pin %s"), topic);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
// objectattribute=value
|
||||
|
Loading…
x
Reference in New Issue
Block a user