diff --git a/src/ThreadedGSM.cpp b/src/ThreadedGSM.cpp index e69b7fe..b998361 100644 --- a/src/ThreadedGSM.cpp +++ b/src/ThreadedGSM.cpp @@ -37,7 +37,7 @@ void ThreadedGSM::setInterval(IntervalSourceE source, unsigned long interval) } // Initialization -void ThreadedGSM::begin() +void ThreadedGSM::setup() { mRequests = (REQ_STARTUP); @@ -45,7 +45,7 @@ void ThreadedGSM::begin() } // Call this function for executing thread -void ThreadedGSM::exec() +void ThreadedGSM::loop() { if (mDte.getIsBusy()) return; diff --git a/src/ThreadedGSM.h b/src/ThreadedGSM.h index 28c1910..8ca0ea6 100644 --- a/src/ThreadedGSM.h +++ b/src/ThreadedGSM.h @@ -31,7 +31,7 @@ #define THREADEDGSM_INTERVAL_COUNT 3 -class ThreadedGSM : public Executable +class ThreadedGSM : public Loop { // variables public: @@ -193,7 +193,7 @@ class ThreadedGSM : public Executable void setInterval(IntervalSourceE source, unsigned long interval); // Initialization - void begin(); + void setup(); // Requests void sendSMS(String & Number, String & Text); @@ -230,6 +230,6 @@ class ThreadedGSM : public Executable void CheckRing(); // executing threads - void exec() override; + void loop() override; }; // ThreadedGSM