Skip to content

Commit

Permalink
millis in GWG
Browse files Browse the repository at this point in the history
  • Loading branch information
bertmelis committed Dec 14, 2023
1 parent a2ea688 commit 380ca30
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/GWG/GWG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace VitoWiFi {
#if defined(ARDUINO_ARCH_ESP8266) || defined(ARDUINO_ARCH_ESP32)
GWG::GWG(HardwareSerial* interface)
: _state(State::UNDEFINED)
, _currentMillis(millis())
, _currentMillis(vw_millis())
, _lastMillis(_currentMillis)
, _requestTime(0)
, _bytesTransferred(0)
Expand All @@ -39,7 +39,7 @@ GWG::GWG(HardwareSerial* interface)

GWG::GWG(SoftwareSerial* interface)
: _state(State::UNDEFINED)
, _currentMillis(millis())
, _currentMillis(vw_millis())
, _lastMillis(_currentMillis)
, _requestTime(0)
, _bytesTransferred(0)
Expand All @@ -65,7 +65,7 @@ GWG::GWG(SoftwareSerial* interface)
#else
GWG::GWG(const char* interface)
: _state(State::UNDEFINED)
, _currentMillis(millis())
, _currentMillis(vw_millis())
, _lastMillis(_currentMillis)
, _requestTime(0)
, _bytesTransferred(0)
Expand Down Expand Up @@ -160,7 +160,7 @@ bool GWG::begin() {
}

void GWG::loop() {
_currentMillis = millis();
_currentMillis = vw_millis();
switch (_state) {
case State::INIT:
_init();
Expand Down

0 comments on commit 380ca30

Please sign in to comment.