Skip to content

Commit

Permalink
Check HASP_USE_GPIO in dispatch_gpio
Browse files Browse the repository at this point in the history
  • Loading branch information
fvanroie committed Apr 25, 2021
1 parent ba8f3f0 commit 1bd4e69
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hasp/hasp_dispatch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1bd4e69

Please sign in to comment.