Philippe G 4 anos atrás
pai
commit
f6b55c5ac9
1 arquivos alterados com 5 adições e 0 exclusões
  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;