mirror of https://github.com/arendst/Tasmota.git
Fix non-webserver compilation
This commit is contained in:
parent
0bddfad14e
commit
af1fa724af
|
@ -2709,6 +2709,10 @@ String HtmlEscape(const String unescaped) {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String SettingsTextEscaped(uint32_t index) {
|
||||||
|
return HtmlEscape(SettingsText(index));
|
||||||
|
}
|
||||||
|
|
||||||
String UrlEscape(const char *unescaped) {
|
String UrlEscape(const char *unescaped) {
|
||||||
static const char *hex = "0123456789ABCDEF";
|
static const char *hex = "0123456789ABCDEF";
|
||||||
String result;
|
String result;
|
||||||
|
|
|
@ -477,10 +477,6 @@ static void WebGetArg(const char* arg, char* out, size_t max)
|
||||||
// out[max-1] = '\0'; // Ensure terminating NUL
|
// out[max-1] = '\0'; // Ensure terminating NUL
|
||||||
}
|
}
|
||||||
|
|
||||||
String SettingsTextEscaped(uint32_t index) {
|
|
||||||
return HtmlEscape(SettingsText(index));
|
|
||||||
}
|
|
||||||
|
|
||||||
String AddWebCommand(const char* command, const char* arg, const char* dflt) {
|
String AddWebCommand(const char* command, const char* arg, const char* dflt) {
|
||||||
/*
|
/*
|
||||||
// OK but fixed max argument
|
// OK but fixed max argument
|
||||||
|
|
|
@ -894,6 +894,7 @@ bool Xdrv52(uint32_t function)
|
||||||
BrLoad("autoexec.be"); // run autoexec.be at first tick, so we know all modules are initialized
|
BrLoad("autoexec.be"); // run autoexec.be at first tick, so we know all modules are initialized
|
||||||
berry.autoexec_done = true;
|
berry.autoexec_done = true;
|
||||||
|
|
||||||
|
#ifdef USE_WEBSERVER
|
||||||
// check if `web_add_handler` was missed, for example because of Berry VM restart
|
// check if `web_add_handler` was missed, for example because of Berry VM restart
|
||||||
if (!berry.web_add_handler_done) {
|
if (!berry.web_add_handler_done) {
|
||||||
bool network_up = WifiHasIP();
|
bool network_up = WifiHasIP();
|
||||||
|
@ -905,6 +906,7 @@ bool Xdrv52(uint32_t function)
|
||||||
berry.web_add_handler_done = true;
|
berry.web_add_handler_done = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif // USE_WEBSERVER
|
||||||
}
|
}
|
||||||
if (TasmotaGlobal.berry_fast_loop_enabled) { // call only if enabled at global level
|
if (TasmotaGlobal.berry_fast_loop_enabled) { // call only if enabled at global level
|
||||||
callBerryFastLoop(false); // call `tasmota.fast_loop()` optimized for minimal performance impact
|
callBerryFastLoop(false); // call `tasmota.fast_loop()` optimized for minimal performance impact
|
||||||
|
|
|
@ -870,14 +870,14 @@ const char HTTP_SNS_GPS2[] PROGMEM = "{s}GPS " D_SPEED "{m}%2_f " D_UNIT_KILOMET
|
||||||
"{s}GPS " D_HEADING_ACCURACY "{m}%1_f{e}";
|
"{s}GPS " D_HEADING_ACCURACY "{m}%1_f{e}";
|
||||||
#endif // USE_GPS_VELOCITY
|
#endif // USE_GPS_VELOCITY
|
||||||
|
|
||||||
const char kGPSFix[] PROGMEM = D_SAT_FIX_NO_FIX "|" D_SAT_FIX_DEAD_RECK "|" D_SAT_FIX_2D "|" D_SAT_FIX_3D "|" D_SAT_FIX_GPS_DEAD "|" D_SAT_FIX_TIME;
|
|
||||||
|
|
||||||
#ifdef USE_GPS_MAPS
|
#ifdef USE_GPS_MAPS
|
||||||
const char UBX_GOOGLE_MAPS[] ="<iframe width='100%%' src='https://maps.google.com/maps?width=&height=&hl=en&q=%s %s+(Tasmota)&ie=UTF8&t=&z=10&iwloc=B&output=embed' frameborder='0' scrolling='no' marginheight='0' marginwidth='0'></iframe>";
|
const char UBX_GOOGLE_MAPS[] ="<iframe width='100%%' src='https://maps.google.com/maps?width=&height=&hl=en&q=%s %s+(Tasmota)&ie=UTF8&t=&z=10&iwloc=B&output=embed' frameborder='0' scrolling='no' marginheight='0' marginwidth='0'></iframe>";
|
||||||
#endif // USE_GPS_MAPS
|
#endif // USE_GPS_MAPS
|
||||||
|
|
||||||
#endif // USE_WEBSERVER
|
#endif // USE_WEBSERVER
|
||||||
|
|
||||||
|
const char kGPSFix[] PROGMEM = D_SAT_FIX_NO_FIX "|" D_SAT_FIX_DEAD_RECK "|" D_SAT_FIX_2D "|" D_SAT_FIX_3D "|" D_SAT_FIX_GPS_DEAD "|" D_SAT_FIX_TIME;
|
||||||
|
|
||||||
/********************************************************************************************/
|
/********************************************************************************************/
|
||||||
|
|
||||||
void UBXShow(bool json) {
|
void UBXShow(bool json) {
|
||||||
|
|
Loading…
Reference in New Issue