From ce70640feda50f75f5e442d31c078c7b4648eb3b Mon Sep 17 00:00:00 2001 From: Simon Smith Date: Mon, 17 Jan 2022 21:32:00 +0000 Subject: [PATCH] Update battery.js --- lib/battery.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/battery.js b/lib/battery.js index 32545fd..82558f9 100644 --- a/lib/battery.js +++ b/lib/battery.js @@ -244,8 +244,8 @@ module.exports = function (callback) { batteries[batteries.length - 1].push(parts[i]); } } - let designCapacities = data.results[1].split('\r\n').filter(e => e); - let fullChargeCapacities = data.results[2].split('\r\n').filter(e => e); + let designCapacities = data.results[1].split('\r\n').filter(e => e); + let fullChargeCapacities = data.results[2].split('\r\n').filter(e => e); if (batteries.length) { let first = false; let additionalBatteries = [];