From c59fc5e43151f7d0810a83f92deba92c14ebb1e2 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Mon, 5 Dec 2022 15:05:57 -0500 Subject: [PATCH] don't read I2C outside of clockgen --- cubesatsim/cubesatsim.ino | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index c47dd24f..a3aada0a 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -63,6 +63,8 @@ Adafruit_SI5351 clockgen = Adafruit_SI5351(); unsigned long micros3; +volatile i2c_busy_now = false; + //WiFiServer server(port); //WiFiClient client; @@ -210,9 +212,9 @@ void loop() { generate_simulated_telem(); else // query INA219 sensors and Payload sensors - read_ina219(); + ; // read_ina219(); - read_payload(); + // read_payload(); // encode as digits (APRS or CW mode) or binary (DUV FSK) if ((mode == BPSK) || (mode == FSK)) {