From 0468069065dcd3e096b2e2fc2b37feab4b392a3c Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sun, 7 Aug 2022 03:57:50 -0400 Subject: [PATCH] use simulated telem mode if bus 3 isn't present. --- cubesatsim/cubesatsim.ino | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index 2eeb597c..154660de 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -100,15 +100,19 @@ void setup() { // configure STEM Payload sensors start_payload(); // above code not working, so forcing it - read_reset_count(); + read_reset_count(); +/* sim_mode = FALSE; if (sim_mode) config_simulated_telem(); else ; // configure ina219s - - start_ina219(); +*/ + start_ina219(); + + if (i2c_bus3 == false) { + configure_simulated_telem(); config_telem();