Update RHF76.c
fix bug for lora incoming buffer
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user