From 88828fcd5d5b776c41886c2ebd45d50db3736135 Mon Sep 17 00:00:00 2001 From: Pablo2048 Date: Mon, 9 Oct 2023 08:38:25 +0200 Subject: [PATCH] Aktualizace na nejnovejsi zmeny v ESPF --- src/ThreadedGSM.cpp | 4 ++-- src/ThreadedGSM.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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