Skip to content

Commit

Permalink
possible fixes for these
Browse files Browse the repository at this point in the history
Not entirely sure why esp8266 is not auto casting these
  • Loading branch information
tablatronix committed Oct 11, 2023
1 parent 72956f5 commit f328cd0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions WiFiManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2712,7 +2712,7 @@ void WiFiManager::setSaveConnect(bool connect) {
void WiFiManager::setDebugOutput(boolean debug) {
_debug = debug;
if(_debug && _debugLevel == WM_DEBUG_DEV) debugPlatformInfo();
if(_debug && _debugLevel >= WM_DEBUG_NOTIFY) DEBUG_WM((String)WM_VERSION_STR + " D:"+(String)_debugLevel);
if(_debug && _debugLevel >= WM_DEBUG_NOTIFY)DEBUG_WM((__FlashStringHelper *)WM_VERSION_STR," D:"+String(_debugLevel));
}

void WiFiManager::setDebugOutput(boolean debug, String prefix) {
Expand Down Expand Up @@ -3146,7 +3146,7 @@ void WiFiManager::setMenu(const char * menu[], uint8_t size){
_menuIds.clear();
for(size_t i = 0; i < size; i++){
for(size_t j = 0; j < _nummenutokens; j++){
if((String)menu[i] == String(_menutokens[j])){
if((String)menu[i] == (__FlashStringHelper *)(_menutokens[j])){
if((String)menu[i] == "param") _paramsInWifi = false; // param auto flag
_menuIds.push_back(j);
}
Expand Down Expand Up @@ -3175,7 +3175,7 @@ void WiFiManager::setMenu(std::vector<const char *>& menu){
_menuIds.clear();
for(auto menuitem : menu ){
for(size_t j = 0; j < _nummenutokens; j++){
if((String)menuitem == String(_menutokens[j])){
if((String)menuitem == (__FlashStringHelper *)(_menutokens[j])){
if((String)menuitem == "param") _paramsInWifi = false; // param auto flag
_menuIds.push_back(j);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ void setup() {
// WiFi.setSortMethod(WIFI_CONNECT_AP_BY_SIGNAL); // wifi_sort_method_t sortMethod - WIFI_CONNECT_AP_BY_SIGNAL,WIFI_CONNECT_AP_BY_SECURITY
// WiFi.setMinSecurity(WIFI_AUTH_WPA2_PSK);

wm.setDebugOutput(true, DEBUG_DEV);
wm.setDebugOutput(true, WM_DEBUG_DEV);
wm.debugPlatformInfo();

//reset settings - for testing
Expand Down

0 comments on commit f328cd0

Please sign in to comment.