diff --git a/ESP.code-workspace b/ESP.code-workspace index 4b05e80..f06f60b 100644 --- a/ESP.code-workspace +++ b/ESP.code-workspace @@ -10,6 +10,36 @@ } ], "settings": { + "cSpell.words": [ + "cctype", + "cinttypes", + "clocale", + "cmath", + "cstdarg", + "cstddef", + "cstdint", + "cstdio", + "cstdlib", + "cstring", + "cwchar", + "cwctype", + "deque", + "ESPS", + "fstream", + "iomanip", + "iosfwd", + "iostream", + "istream", + "JTAG", + "ostream", + "sccb", + "sstream", + "stdexcept", + "streambuf", + "txpower", + "typeinfo", + "XIAO" + ], "files.associations": { "*.Rmd": "rmd", "array": "cpp", @@ -64,7 +94,6 @@ "cinttypes": "cpp", "typeinfo": "cpp", "iostream": "cpp" - }, - "cSpell.words": ["ESPS", "JTAG", "sccb", "txpower", "XIAO"] + } } } diff --git a/ESP/lib/src/data/config/project_config.cpp b/ESP/lib/src/data/config/project_config.cpp index cd3215f..e0398c8 100644 --- a/ESP/lib/src/data/config/project_config.cpp +++ b/ESP/lib/src/data/config/project_config.cpp @@ -280,7 +280,7 @@ void ProjectConfig::setWifiConfig(const std::string& networkName, if (shouldNotify) { wifiStateManager.setState(WiFiState_e::WiFiState_Disconnected); - WiFi.disconnect(); + //WiFi.disconnect(); this->wifiConfigSave(); this->notifyAll(ConfigState_e::networksConfigUpdated); } @@ -309,7 +309,7 @@ void ProjectConfig::setWifiConfig(const std::string& networkName, if (shouldNotify) { wifiStateManager.setState(WiFiState_e::WiFiState_None); - WiFi.disconnect(); + //WiFi.disconnect(); this->wifiConfigSave(); this->notifyAll(ConfigState_e::networksConfigUpdated); } diff --git a/ESP/lib/src/openiris.hpp b/ESP/lib/src/openiris.hpp new file mode 100644 index 0000000..7316fdd --- /dev/null +++ b/ESP/lib/src/openiris.hpp @@ -0,0 +1,20 @@ +#ifndef OPENIRIS_HPP +#define OPENIRIS_HPP + +#include + +#include +#include +#include +#include + +#ifndef ETVR_EYE_TRACKER_USB_API +#include +#include +#include +#include +#else +#include +#endif // ETVR_EYE_TRACKER_WEB_API + +#endif // OPENIRIS_HPP diff --git a/ESP/src/main.cpp b/ESP/src/main.cpp index 5880f7d..05c3c04 100644 --- a/ESP/src/main.cpp +++ b/ESP/src/main.cpp @@ -1,18 +1,4 @@ -#include - -#include -#include -#include -#include - -#ifndef ETVR_EYE_TRACKER_USB_API -#include -#include -#include -#include -#else -#include -#endif // ETVR_EYE_TRACKER_WEB_API +#include /** * @brief ProjectConfig object