Actually change volume in the HandleVolue callback
This commit is contained in:
1 parent
5a9340c452
commit
397aee8c19
1 file changed
+1
@@ -138,6 +138,7 @@ void HandleVolume(WiFiClient *client, char *params)
|
|||||||
ParamInt("vol", volume);
|
ParamInt("vol", volume);
|
||||||
}
|
}
|
||||||
Serial.printf_P(PSTR("Set volume: %d\n"), volume);
|
Serial.printf_P(PSTR("Set volume: %d\n"), volume);
|
||||||
|
out->SetGain(((float)volume)/100.0);
|
||||||
RedirectToIndex(client);
|
RedirectToIndex(client);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user