mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 12:37:01 +03:00
amp gpio polarity parse error - release
This commit is contained in:
@@ -169,7 +169,7 @@ static void jack_handler(bool inserted) {
|
|||||||
static void set_amp_gpio(int gpio, char *value) {
|
static void set_amp_gpio(int gpio, char *value) {
|
||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
if (!strcasecmp(value, "amp")) {
|
if (strcasestr(value, "amp")) {
|
||||||
amp_control.gpio = gpio;
|
amp_control.gpio = gpio;
|
||||||
if ((p = strchr(value, ':')) != NULL) amp_control.active = atoi(p + 1);
|
if ((p = strchr(value, ':')) != NULL) amp_control.active = atoi(p + 1);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user