mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2026-01-27 12:50:49 +03:00
Battery gauge fix (#52)
* Fix battery reporting in status.json, and adjust scaling for bettery level representation * remove comment verbosity * change battery_value_svc to return float Co-authored-by: rochuck <chuck@zethus.ca>
This commit is contained in:
@@ -43,7 +43,7 @@ static struct {
|
||||
/****************************************************************************************
|
||||
*
|
||||
*/
|
||||
int battery_value_svc(void) {
|
||||
float battery_value_svc(void) {
|
||||
return battery.avg;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user