causes heap curruption, probably should include - 1
This commit is contained in:
parent
0ab9a59081
commit
4c035d43fb
1 changed files with 2 additions and 2 deletions
|
@ -67,8 +67,8 @@ void lorcomm_handle_receive(uint8_t size) {
|
||||||
|
|
||||||
// if the msg doesnt end in NULL it's probably already corrupt
|
// if the msg doesnt end in NULL it's probably already corrupt
|
||||||
// just go ahead and terminate it
|
// just go ahead and terminate it
|
||||||
if(msg->msg[msg->length] != '\0')
|
//if(msg->msg[msg->length] != '\0')
|
||||||
msg->msg[msg->length] = '\0';
|
//msg->msg[msg->length] = '\0';
|
||||||
|
|
||||||
ESP_LOGI(TAG, "msg (len: %d): %s", msg->length, msg->msg);
|
ESP_LOGI(TAG, "msg (len: %d): %s", msg->length, msg->msg);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue