Philippe G hace 4 años
padre
commit
f6b55c5ac9
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      plugin/SqueezeESP32/Player.pm

+ 5 - 0
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;