moved .begin to setup, commented out reset read from EEPROM

pico-v0.1
alanbjohnston 3 years ago committed by GitHub
parent d5a58a4d14
commit 5897514c1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -66,7 +66,8 @@ void setup() {
config_gpio(); config_gpio();
EEPROM.begin(512);
#ifndef ARDUINO_ARCH_RP2040 #ifndef ARDUINO_ARCH_RP2040
Serial.println("This code is written for the Raspberry Pi Pico hardware."); Serial.println("This code is written for the Raspberry Pi Pico hardware.");
#endif #endif
@ -92,7 +93,7 @@ void setup() {
// configure STEM Payload sensors // configure STEM Payload sensors
start_payload(); // above code not working, so forcing it start_payload(); // above code not working, so forcing it
read_reset_count(); // read_reset_count();
sim_mode = FALSE; sim_mode = FALSE;
if (sim_mode) if (sim_mode)
@ -201,8 +202,6 @@ bool TimerHandler1(struct repeating_timer *t) {
void read_reset_count() { void read_reset_count() {
EEPROM.begin(512);
long stored_reset, reset_flag; long stored_reset, reset_flag;
EEPROM.get(16, reset_flag); EEPROM.get(16, reset_flag);

Loading…
Cancel
Save

Powered by TurnKey Linux.