diff --git a/frontend/src/components/repeater/repeaterPaneShared.tsx b/frontend/src/components/repeater/repeaterPaneShared.tsx index 5ec04d4..5dc31c3 100644 --- a/frontend/src/components/repeater/repeaterPaneShared.tsx +++ b/frontend/src/components/repeater/repeaterPaneShared.tsx @@ -212,7 +212,7 @@ export const LPP_UNIT_MAP: Record = { humidity: '%', barometer: 'hPa', voltage: 'V', - current: 'mA', + current: 'A', luminosity: 'lux', altitude: 'm', power: 'W', @@ -235,6 +235,9 @@ export function lppDisplayUnit( if (typeName === 'temperature' && unitPref === 'imperial') { return { unit: '°F', value: (value * 9) / 5 + 32 }; } + if (typeName === 'current') { + if (value <= 1) return { unit: 'mA', value: value * 1000 }; + } return { unit: LPP_UNIT_MAP[typeName] ?? '', value }; }