Philippe G il y a 4 ans
Parent
commit
f6b55c5ac9
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  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;