This commit is contained in:
Philippe G
2021-04-04 15:45:22 -07:00
parent f9e97036cf
commit f6b55c5ac9

View File

@@ -343,4 +343,9 @@ sub lineInOutStatus {
}
}
sub voltage {
my $voltage = Slim::Networking::Slimproto::voltage(shift) || return 0;
return sprintf("%.2f", ($voltage >> 4) / 128);
}
1;