clean up recovery mode

This commit is contained in:
Christian Herzog
2019-09-22 21:36:38 +02:00
parent 09d07dc26b
commit fb000e56be
3 changed files with 11 additions and 13 deletions

View File

@@ -303,7 +303,7 @@ void http_server_netconn_serve(struct netconn *conn) {
ESP_LOGE(TAG,"Unable to process autoexec%u. Name length overflow.",i);
break;
}
if(snprintf(autoexec_key,sizeof(autoexec_key)-1,"autoexec%u",i++)<0)
if(snprintf(autoexec_key,sizeof(autoexec_key)-1,"autoexec%u",i)<0)
{
ESP_LOGE(TAG,"Unable to process autoexec%u. Name length overflow.",i);
break;
@@ -320,6 +320,7 @@ void http_server_netconn_serve(struct netconn *conn) {
{
ESP_LOGE(TAG,"command line length is too long : %s = %s", autoexec_name, autoexec_value);
}
i++;
}
else {
ESP_LOGD(TAG,"No matching command found for name %s", autoexec_name);