Update RHF76.c

fix bug for lora incoming buffer
This commit is contained in:
supowang
2020-05-29 15:30:10 +08:00
parent f9bd2588a2
commit 84faf16765

View File

@@ -461,8 +461,16 @@ __STATIC__ void rhf76_incoming_data_process(void)
if (data == '"') { if (data == '"') {
break; break;
} }
if(ret<128)
{
incoming_data_buffer[ret++] = data; incoming_data_buffer[ret++] = data;
} }
else
{
printf(" ERR:incomming data is big ,please give more space for incoming_data_buffer\n");
}
}
printf("rhf76_incoming_data_process %d: %s\n", ret, incoming_data_buffer); printf("rhf76_incoming_data_process %d: %s\n", ret, incoming_data_buffer);