make EMS-ESP compile standalone on osx/darwin and linux

This commit is contained in:
Proddy
2023-07-15 11:00:04 +02:00
parent ccd69c2c3a
commit 98dd25c5bb
4 changed files with 4 additions and 5 deletions

View File

@@ -197,7 +197,7 @@ const char * MqttClient::getClientId() const {
}
void MqttClient::loop() {
switch (_state) {
switch ((State)_state) { // TOOD modified by proddy for EMS-ESP compiling on osx
case State::disconnected:
#if defined(ARDUINO_ARCH_ESP32)
if (_useInternalTask == espMqttClientTypes::UseInternalTask::YES) {