diff --git a/GpsTracker/Core.cpp b/GpsTracker/Core.cpp index 5222961..e6d1bf5 100644 --- a/GpsTracker/Core.cpp +++ b/GpsTracker/Core.cpp @@ -4,11 +4,4 @@ namespace core { - GPS_TRACKER_STATES state; - - void setCurrentState(GPS_TRACKER_STATES s) { - state = s; - VERBOSE_FORMAT("setCurrentState", "%d, Free RAM : %d", state debug::freeRam()); - } - } \ No newline at end of file diff --git a/GpsTracker/Core.h b/GpsTracker/Core.h index 9540eb1..7d733f4 100644 --- a/GpsTracker/Core.h +++ b/GpsTracker/Core.h @@ -4,21 +4,6 @@ #include "Debug.h" -enum class GPS_TRACKER_STATES : uint8_t -{ - SETUP = 0, - GET_POSITION = 1, - SAVE_POSITION = 2, - SEND_POSITION = 3, - SLEEP = 4 -}; - - - namespace core { - extern GPS_TRACKER_STATES state; - - void setCurrentState(GPS_TRACKER_STATES s); - } \ No newline at end of file diff --git a/GpsTracker/GpsTracker.ino b/GpsTracker/GpsTracker.ino index e9fd6a6..58b26dc 100644 --- a/GpsTracker/GpsTracker.ino +++ b/GpsTracker/GpsTracker.ino @@ -7,8 +7,6 @@ void setup() { Log.begin(LOG_LEVEL_VERBOSE, &Serial); #endif - core::setCurrentState(GPS_TRACKER_STATES::SETUP); - rtc::powerOn(); rtc::setup(); rtc::powerOff();