[GH-ISSUE #1177] Basic Dev Branch not compiling anymore #1004

Closed
opened 2026-02-28 01:28:05 +03:00 by kerem · 1 comment
Owner

Originally created by @M4XXX on GitHub (Dec 16, 2020).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1177

Hardware

WiFimanager Branch/Release:

  • Master
  • [x ] Development

Esp8266/Esp32:

  • ESP8266
  • [x ] ESP32

Description

Project with platformio and i get errors with my basic project...

Settings in IDE / Platformio:

[env:ttgo-t-watch-test3]
platform = espressif32
board = ttgo-t-watch
framework = arduino
upload_speed = 2000000
monitor_speed = 115200
lib_deps =
  https://github.com/tzapu/WiFiManager.git#development

Sketch

#include <Arduino.h>
#include <WiFiManager.h>

void setup() {    
    //Setting up Serial
    Serial.begin(115200);
    Serial.println("Serial initialized");

    WiFiManager wifiManager;
}

void loop(){

}

Debug Messages

Dependency Graph
|-- <WiFiManager> 2.0.4-beta+sha.4d2a6b2
|   |-- <DNSServer> 1.1.0
|   |   |-- <WiFi> 1.0
|   |-- <ESPmDNS> 1.0
|   |   |-- <WiFi> 1.0
|   |-- <Update> 1.0
|   |-- <WebServer> 1.0
|   |   |-- <WiFi> 1.0
|   |   |-- <FS> 1.0
|   |-- <WiFi> 1.0

.pio\libdeps\ttgo-t-watch-test3\WiFiManager\WiFiManager.cpp: In member function 'bool WiFiManager::WiFiSetCountry()':
.pio\libdeps\ttgo-t-watch-test3\WiFiManager\WiFiManager.cpp:3184:10: warning: comparison of constant '12289' with boolean expression is always false [-Wbool-compare]
   if(ret == ESP_ERR_WIFI_NOT_INIT) DEBUG_WM(DEBUG_ERROR,"[ERROR] ESP_ERR_WIFI_NOT_INIT");
          ^
.pio\libdeps\ttgo-t-watch-test3\WiFiManager\WiFiManager.cpp:3185:15: warning: comparison of constant '258' with boolean expression is always false [-Wbool-compare]
Compiling .pio\build\ttgo-t-watch-test3\FrameworkArduino\esp32-hal-uart.c.o
   else if(ret == ESP_ERR_INVALID_ARG) DEBUG_WM(DEBUG_ERROR,"[ERROR] ESP_ERR_WIFI_ARG");
               ^
.pio\libdeps\ttgo-t-watch-test3\WiFiManager\WiFiManager.cpp:3186:19: error: 'ERR_OK' was not declared in this scope
   else if (ret != ERR_OK)DEBUG_WM(DEBUG_ERROR,"[ERROR] unknown error",(String)ret);
                   ^
<command-line>:0:10: warning: ISO C99 requires whitespace after the macro name
Compiling .pio\build\ttgo-t-watch-test3\FrameworkArduino\libb64\cdecode.c.o
Compiling .pio\build\ttgo-t-watch-test3\FrameworkArduino\libb64\cencode.c.o
<command-line>:0:10: warning: ISO C99 requires whitespace after the macro name
Compiling .pio\build\ttgo-t-watch-test3\FrameworkArduino\main.cpp.o
Compiling .pio\build\ttgo-t-watch-test3\FrameworkArduino\stdlib_noniso.c.o
Compiling .pio\build\ttgo-t-watch-test3\FrameworkArduino\wiring_pulse.c.o
<command-line>:0:10: warning: ISO C99 requires whitespace after the macro name
Compiling .pio\build\ttgo-t-watch-test3\FrameworkArduino\wiring_shift.c.o
<command-line>:0:10: warning: ISO C99 requires whitespace after the macro name
<command-line>:0:10: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:10: warning: ISO C99 requires whitespace after the macro name
*** [.pio\build\ttgo-t-watch-test3\lib19b\WiFiManager\WiFiManager.cpp.o] Error 1
<command-line>:0:10: warning: ISO C99 requires whitespace after the macro name
<command-line>:0:10: warning: ISO C99 requires whitespace after the macro name

image

Originally created by @M4XXX on GitHub (Dec 16, 2020). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1177 #### Hardware **WiFimanager Branch/Release:** - [ ] Master - [x ] Development **Esp8266/Esp32:** - [ ] ESP8266 - [x ] ESP32 ### Description Project with platformio and i get errors with my basic project... ### Settings in IDE / Platformio: ``` [env:ttgo-t-watch-test3] platform = espressif32 board = ttgo-t-watch framework = arduino upload_speed = 2000000 monitor_speed = 115200 lib_deps = https://github.com/tzapu/WiFiManager.git#development ``` ### Sketch ``` #include <Arduino.h> #include <WiFiManager.h> void setup() { //Setting up Serial Serial.begin(115200); Serial.println("Serial initialized"); WiFiManager wifiManager; } void loop(){ } ``` ### Debug Messages ``` Dependency Graph |-- <WiFiManager> 2.0.4-beta+sha.4d2a6b2 | |-- <DNSServer> 1.1.0 | | |-- <WiFi> 1.0 | |-- <ESPmDNS> 1.0 | | |-- <WiFi> 1.0 | |-- <Update> 1.0 | |-- <WebServer> 1.0 | | |-- <WiFi> 1.0 | | |-- <FS> 1.0 | |-- <WiFi> 1.0 .pio\libdeps\ttgo-t-watch-test3\WiFiManager\WiFiManager.cpp: In member function 'bool WiFiManager::WiFiSetCountry()': .pio\libdeps\ttgo-t-watch-test3\WiFiManager\WiFiManager.cpp:3184:10: warning: comparison of constant '12289' with boolean expression is always false [-Wbool-compare] if(ret == ESP_ERR_WIFI_NOT_INIT) DEBUG_WM(DEBUG_ERROR,"[ERROR] ESP_ERR_WIFI_NOT_INIT"); ^ .pio\libdeps\ttgo-t-watch-test3\WiFiManager\WiFiManager.cpp:3185:15: warning: comparison of constant '258' with boolean expression is always false [-Wbool-compare] Compiling .pio\build\ttgo-t-watch-test3\FrameworkArduino\esp32-hal-uart.c.o else if(ret == ESP_ERR_INVALID_ARG) DEBUG_WM(DEBUG_ERROR,"[ERROR] ESP_ERR_WIFI_ARG"); ^ .pio\libdeps\ttgo-t-watch-test3\WiFiManager\WiFiManager.cpp:3186:19: error: 'ERR_OK' was not declared in this scope else if (ret != ERR_OK)DEBUG_WM(DEBUG_ERROR,"[ERROR] unknown error",(String)ret); ^ <command-line>:0:10: warning: ISO C99 requires whitespace after the macro name Compiling .pio\build\ttgo-t-watch-test3\FrameworkArduino\libb64\cdecode.c.o Compiling .pio\build\ttgo-t-watch-test3\FrameworkArduino\libb64\cencode.c.o <command-line>:0:10: warning: ISO C99 requires whitespace after the macro name Compiling .pio\build\ttgo-t-watch-test3\FrameworkArduino\main.cpp.o Compiling .pio\build\ttgo-t-watch-test3\FrameworkArduino\stdlib_noniso.c.o Compiling .pio\build\ttgo-t-watch-test3\FrameworkArduino\wiring_pulse.c.o <command-line>:0:10: warning: ISO C99 requires whitespace after the macro name Compiling .pio\build\ttgo-t-watch-test3\FrameworkArduino\wiring_shift.c.o <command-line>:0:10: warning: ISO C99 requires whitespace after the macro name <command-line>:0:10: warning: ISO C++11 requires whitespace after the macro name <command-line>:0:10: warning: ISO C99 requires whitespace after the macro name *** [.pio\build\ttgo-t-watch-test3\lib19b\WiFiManager\WiFiManager.cpp.o] Error 1 <command-line>:0:10: warning: ISO C99 requires whitespace after the macro name <command-line>:0:10: warning: ISO C99 requires whitespace after the macro name ``` ![image](https://user-images.githubusercontent.com/44500247/102401655-f9712500-3fe3-11eb-84fb-70c034d908f3.png)
kerem 2026-02-28 01:28:05 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@tablatronix commented on GitHub (Dec 16, 2020):

Thanks, my bad

<!-- gh-comment-id:747076722 --> @tablatronix commented on GitHub (Dec 16, 2020): Thanks, my bad
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#1004
No description provided.