diff --git a/src/HTTPPostSystem.c b/src/HTTPPostSystem.c index eeade8c..8fd5479 100644 --- a/src/HTTPPostSystem.c +++ b/src/HTTPPostSystem.c @@ -450,17 +450,13 @@ static HTTP_IO_RESULT HTTPPostSystemSettings(httpd_req_t *req, char *PostData) { if (!strcmp(tmp, (const char*) "1")) { - ESP_LOGI(TAG, "Got command F1 send test lora"); - const char test[] = { "LoRaWAN test message" }; - LORA_DATA_SEND_STRUCT dss; - dss.raw_data_ptr = test; - dss.data_length = sizeof(test) + 1; - LORASendData(&dss); return HTTP_IO_DONE_NOREFRESH; } else if (!strcmp(tmp, (const char*) "2")) { +#if CONFIG_WEBGUIAPP_GPRS_ENABLE PPPModemGetRSSI(); +#endif return HTTP_IO_DONE_NOREFRESH; } else if (!strcmp(tmp, (const char*) "3")) diff --git a/src/HTTPPrintSystem.c b/src/HTTPPrintSystem.c index 5c5aeae..808ca91 100644 --- a/src/HTTPPrintSystem.c +++ b/src/HTTPPrintSystem.c @@ -625,7 +625,11 @@ static void HTTPPrint_hide_mqtt2(char *VarData, void *arg) static void HTTPPrint_hide_lora(char *VarData, void *arg) { +#ifdef CONFIG_WEBGUIAPP_LORAWAN_ENABLE snprintf(VarData, MAX_DYNVAR_LENGTH, " "); +#else + snprintf(VarData, MAX_DYNVAR_LENGTH, "hide"); +#endif } static void HTTPPrint_hide_eth(char *VarData, void *arg)