mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 09:31:20 -04:00
change to ma
This commit is contained in:
@@ -55,8 +55,8 @@ function formatVoltage(voltageMv) {
|
||||
|
||||
function formatCurrent(currentMa) {
|
||||
if (currentMa == null) return 'n/a';
|
||||
const amps = currentMa / 1000;
|
||||
return `${amps.toFixed(2)}A`;
|
||||
// const amps = currentMa / 1000;
|
||||
return `${currentMa}mA`;
|
||||
}
|
||||
|
||||
function formatChargeState(batteryState) {
|
||||
|
||||
Reference in New Issue
Block a user