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) {

View File

@@ -123,8 +123,7 @@ class MqttClient {
#elif defined(ARDUINO_ARCH_ESP8266) && EMC_ESP8266_MULTITHREADING
std::atomic<bool> _xSemaphore = false;
#elif defined(__linux__)
// added mutable to compile EMS-ESP standalone
mutable std::mutex mtx;
mutable std::mutex mtx; // TOOD modified by proddy for EMS-ESP
#endif
uint8_t _rxBuffer[EMC_RX_BUFFER_SIZE];