mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-03-09 16:58:12 +01:00
remove debug log, merge common code
This commit is contained in:
@@ -367,8 +367,9 @@ const char* hass_build_discovery_json(HassDeviceInfo* info) {
|
||||
/// @brief Release allocated memory.
|
||||
/// @param info
|
||||
void hass_free_device_info(HassDeviceInfo* info) {
|
||||
if (info == NULL) return;
|
||||
addLogAdv(LOG_DEBUG, LOG_FEATURE_HASS, "hass_free_device_info \r\n");
|
||||
if (info == NULL)
|
||||
return;
|
||||
//addLogAdv(LOG_DEBUG, LOG_FEATURE_HASS, "hass_free_device_info \r\n");
|
||||
|
||||
if (info->root != NULL) {
|
||||
cJSON_Delete(info->root);
|
||||
|
||||
Reference in New Issue
Block a user