Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/tal_kv/src/tal_kv.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ int tal_kv_get(const char *key, uint8_t **value, size_t *length)
tal_mutex_unlock(lfs_mutex);
return result;
}
PR_DEBUG("key:%s, len:%d", key, ec_len);

result = lfs_file_read(&lfs, &file, ec_data, ec_len);
lfs_file_close(&lfs, &file);
tal_mutex_unlock(lfs_mutex);
Expand Down Expand Up @@ -323,8 +323,6 @@ int tal_kv_get(const char *key, uint8_t **value, size_t *length)
*/
int tal_kv_del(const char *key)
{
PR_DEBUG("key:%s", key);

tal_mutex_lock(lfs_mutex);
int result = lfs_remove(&lfs, key);
tal_mutex_unlock(lfs_mutex);
Expand Down
2 changes: 0 additions & 2 deletions src/tuya_cloud_service/cloud/mqtt_service.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,6 @@ static int tuya_protocol_message_parse_process(tuya_mqtt_context_t *context, con
return OPRT_COM_ERROR;
}

PR_DEBUG("Data JSON:%s", jsonstr);

/* json parse */
cJSON *root = NULL;
cJSON *json = NULL;
Expand Down
6 changes: 0 additions & 6 deletions src/tuya_cloud_service/cloud/tuya_iot.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,6 @@ static int activated_data_read(const char *storage_key, tuya_activated_data_t *o
return rt;
}

PR_DEBUG("readbuf %s", readbuf);

/* Parse activate json string */
rt = activate_json_string_parse((const char *)readbuf, out);
tal_kv_free((uint8_t *)readbuf);
Expand All @@ -169,10 +167,6 @@ static int activated_data_read(const char *storage_key, tuya_activated_data_t *o
PR_ERR("tal_time_set_time_zone fail:%d", rt);
}

/* Dump info */
PR_TRACE("devId: %s", out->devid);
PR_TRACE("secKey: %s", out->seckey);
PR_TRACE("localKey: %s", out->localkey);

return rt;
}
Expand Down
1 change: 0 additions & 1 deletion src/tuya_cloud_service/netmgr/netconn_wifi.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ OPERATE_RET __netconn_wifi_info_set(netconn_wifi_info_t *info)
{
char netinfo[128];
snprintf(netinfo, sizeof(netinfo), "{\"s\":\"%s\",\"p\":\"%s\"}", info->ssid, info->pswd);
PR_DEBUG("netinfo %s", netinfo);

return tal_kv_set("netinfo", (const uint8_t *)netinfo, strlen(netinfo));
}
Expand Down