From 02897ac9fead11e544b4c71f35765d05872bd826 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Mon, 27 Feb 2023 19:06:23 -0500 Subject: [PATCH] added v and i BUS to zero if no battery --- cubesatsim/cubesatsim.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index f40c70bc..d7a832ee 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -2406,6 +2406,8 @@ void read_ina219() } else { voltage[BAT] = 0.0; current[BAT] = 0.0; + voltage[BUS] = 0.0; + current[BUS] = 0.0; } if (i2c5) {