From 5897514c1bfc345b11822a01e5c85644bc856de0 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Wed, 27 Jul 2022 16:56:06 -0400 Subject: [PATCH] moved .begin to setup, commented out reset read from EEPROM --- cubesatsim/cubesatsim.ino | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index 7e7579a9..bd4b373a 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -66,7 +66,8 @@ void setup() { config_gpio(); - + EEPROM.begin(512); + #ifndef ARDUINO_ARCH_RP2040 Serial.println("This code is written for the Raspberry Pi Pico hardware."); #endif @@ -92,7 +93,7 @@ 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) @@ -201,8 +202,6 @@ bool TimerHandler1(struct repeating_timer *t) { void read_reset_count() { - EEPROM.begin(512); - long stored_reset, reset_flag; EEPROM.get(16, reset_flag);