implemented trim_string in message loop

This commit is contained in:
Václav Šmejkal 2024-02-25 13:16:12 +01:00
parent 157d56ac57
commit 22282623af
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -623,6 +623,9 @@ void *why2_communicate_thread(void *arg)
decoded_buffer = get_string_from_json_string(raw, "message"); //DECODE
//TRIM MESSAGE
trim_string(&decoded_buffer);
if (decoded_buffer != NULL && strlen(decoded_buffer) != 0)
{
if (decoded_buffer[0] == '!') //COMMANDS