mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-26 20:56:37 +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)
|
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