mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 04:27:12 +03:00
voltage
This commit is contained in:
@@ -343,4 +343,9 @@ sub lineInOutStatus {
|
||||
}
|
||||
}
|
||||
|
||||
sub voltage {
|
||||
my $voltage = Slim::Networking::Slimproto::voltage(shift) || return 0;
|
||||
return sprintf("%.2f", ($voltage >> 4) / 128);
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
Reference in New Issue
Block a user