Open snoutmate opened 6 years ago
I'm willing to believe something broke with the update stuff, but confusing as it is, LWS_IS_FACTORY_APPLICATION (== 1) is completely distinct from CONFIG_LWS_IS_FACTORY_APPLICATION (==y).
The latter is set in sdkconfig which for me is
CONFIG_LWS_IS_FACTORY_APPLICATION=y
We pass LWS_IS_FACTORYAPPLICATION into the build as it is, without any CONFIG ... I think nothing uses it atm
-DLWS_IS_FACTORY_APPLICATION=$(LWS_IS_FACTORY_APPLICATION)
This is due to an error in components/libwebsockets/plugins/protocol_esp32_lws_scan.c where the following #ifdef on row 218 should be changed from
to
(it is actually defined as == 1 in the generated sdkconfig.h but the above is the way it is used in other files)
Hello, the Auto-update feature is not working, because Makefile sets LWS_IS_FACTORY_APPLICATION to '1' while libwebscokets/plugins/protocol_esp32_lws_scan.c is comparing it to 'y'.
if CONFIG_LWS_IS_FACTORY_APPLICATION == 'y' ...
Thanks.