causes heap curruption, probably should include - 1

This commit is contained in:
Morgan 'ARR\!' Allen 2020-04-26 13:21:05 -07:00
parent 0ab9a59081
commit 4c035d43fb

View file

@ -67,8 +67,8 @@ void lorcomm_handle_receive(uint8_t size) {
// if the msg doesnt end in NULL it's probably already corrupt
// just go ahead and terminate it
if(msg->msg[msg->length] != '\0')
msg->msg[msg->length] = '\0';
//if(msg->msg[msg->length] != '\0')
//msg->msg[msg->length] = '\0';
ESP_LOGI(TAG, "msg (len: %d): %s", msg->length, msg->msg);