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