From 8d8418c8f0bd1f58eb6410c0d7e0695b29d2c15c Mon Sep 17 00:00:00 2001 From: Bogdan Pilyugin Date: Fri, 3 Mar 2023 16:25:50 +0200 Subject: [PATCH] conditional build added for gsm AT commands debug --- src/HTTPPostSystem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/HTTPPostSystem.c b/src/HTTPPostSystem.c index 28cd36b..c406f46 100644 --- a/src/HTTPPostSystem.c +++ b/src/HTTPPostSystem.c @@ -484,9 +484,9 @@ static HTTP_IO_RESULT HTTPPostSystemSettings(httpd_req_t *req, char *PostData) { if (!strcmp(tmp, (const char*) "1")) { - ModemSendAT("AT\r"); return HTTP_IO_DONE_NOREFRESH; } +#if CONFIG_WEBGUIAPP_GPRS_ENABLE else if (!strcmp(tmp, (const char*) "2")) { ModemSendAT("AT+CCLK?\r"); @@ -502,6 +502,7 @@ static HTTP_IO_RESULT HTTPPostSystemSettings(httpd_req_t *req, char *PostData) ModemSendAT("ATH\r"); return HTTP_IO_DONE_NOREFRESH; } +#endif else if (!strcmp(tmp, (const char*) "5")) { return HTTP_IO_DONE_NOREFRESH;