Skip to content

Commit 38f90e8

Browse files
committed
main: update to v5.8.2
1 parent ebcc1ac commit 38f90e8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

esp-idf

Submodule esp-idf updated 1171 files

main/src/user/http_app_token.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ esp_err_t http_app_token_event_handler(esp_http_client_event_t *evt)
3636
cJSON *root = NULL;
3737
if (evt->data_len) {
3838
root = cJSON_Parse(evt->data);
39-
if (cJSON_HasObjectItem(root, "status")) {
40-
cJSON *status = cJSON_GetObjectItemCaseSensitive(root, "status");
41-
if (cJSON_IsTrue(status)) {
39+
if (cJSON_HasObjectItem(root, "result")) {
40+
cJSON *result = cJSON_GetObjectItemCaseSensitive(root, "result");
41+
if (cJSON_IsTrue(result)) {
4242
ESP_LOGW(TAG, "authentication success");
4343
#ifdef CONFIG_ENABLE_GUI
4444
gui_set_mode(GUI_MODE_IDX_GIF_DONE);

0 commit comments

Comments
 (0)