mirror of
https://github.com/meshtastic/meshtastic.git
synced 2025-02-21 03:25:51 -08:00
linter fix
This commit is contained in:
parent
6c0e6b2453
commit
2964e30485
|
@ -1,17 +1,17 @@
|
|||
export default function calculateADC() {
|
||||
//const variables
|
||||
var BAT_MILLIVOLTS_FULL = 4.2;
|
||||
var BAT_MILLIVOLTS_EMPTY = 3.27;
|
||||
var BAT_FULL_PERCENT = 1;
|
||||
let BAT_MILLIVOLTS_FULL = 4.2;
|
||||
let BAT_MILLIVOLTS_EMPTY = 3.27;
|
||||
let BAT_FULL_PERCENT = 1;
|
||||
//variable
|
||||
var batteryChargePercent =
|
||||
let batteryChargePercent =
|
||||
parseFloat(
|
||||
(<HTMLInputElement>document.getElementById("batteryChargePercent")).value
|
||||
) / 100;
|
||||
var operativeAdcMultiplier = parseFloat(
|
||||
let operativeAdcMultiplier = parseFloat(
|
||||
(<HTMLInputElement>document.getElementById("operativeAdcMultiplier")).value
|
||||
);
|
||||
var result =
|
||||
let result =
|
||||
(operativeAdcMultiplier *
|
||||
((BAT_FULL_PERCENT - 1) * BAT_MILLIVOLTS_EMPTY -
|
||||
BAT_FULL_PERCENT * BAT_MILLIVOLTS_FULL)) /
|
||||
|
|
Loading…
Reference in a new issue