fix:优化代码

This commit is contained in:
Zip
2019-03-25 16:47:01 +08:00
parent c7fbcfcfe4
commit 7eacda4ead
2 changed files with 4 additions and 12 deletions

View File

@@ -115,10 +115,8 @@ static void key_short_press( void )
}
char *json_str = cJSON_Print( json_send );
if ( !user_mqtt_isconnect( ) ) //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
user_udp_send( json_str );
else
user_mqtt_send( json_str );
user_send(false,json_str);
free( (void *) json_str );
cJSON_Delete( json_send );