Skip to content
This repository has been archived by the owner on Dec 17, 2021. It is now read-only.

Commit

Permalink
modify code flow so sd card setup occurs earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
okyang committed May 16, 2021
1 parent f583aaa commit 01c587a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions waste_watcher_code/waste_watcher_code.ino
Expand Up @@ -289,12 +289,12 @@ void setup() {
esp_sleep_enable_timer_wakeup(TIME_TO_SLEEP * uS_TO_S_FACTOR);
Serial.println("Setup ESP32 to sleep for every " + String(TIME_TO_SLEEP) + " Seconds");

// === sd card setup ===
sdSetup();

// === ultrasonic setup ===
pinMode(ultrasonicTrigPin, OUTPUT);
pinMode(ultrasonicEchoPin, INPUT);

// === sd card setup ===
sdSetup();

// === wifi setup ===
Serial.print("Connecting to ");
Expand Down

0 comments on commit 01c587a

Please sign in to comment.