diff --git a/plugin/SqueezeESP32/Player.pm b/plugin/SqueezeESP32/Player.pm index 158d1395..d82b3b5c 100644 --- a/plugin/SqueezeESP32/Player.pm +++ b/plugin/SqueezeESP32/Player.pm @@ -343,4 +343,9 @@ sub lineInOutStatus { } } +sub voltage { + my $voltage = Slim::Networking::Slimproto::voltage(shift) || return 0; + return sprintf("%.2f", ($voltage >> 4) / 128); +} + 1;