mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-07-30 16:29:15 +02:00
fix bug
This commit is contained in:
+1
-1
@@ -238,7 +238,7 @@ int main(int argc, char *argv[]) {
|
|||||||
// This means either this is our first packet, if it is we'll sync to the sender and if it isn't we'll set to 0 from 0
|
// This means either this is our first packet, if it is we'll sync to the sender and if it isn't we'll set to 0 from 0
|
||||||
vban_frame = data.packet_data.frame_num;
|
vban_frame = data.packet_data.frame_num;
|
||||||
} else {
|
} else {
|
||||||
uint32_t expected_frame = vban_frame++;
|
uint32_t expected_frame = (vban_frame++) + 1;
|
||||||
|
|
||||||
if (data.packet_data.frame_num != expected_frame) {
|
if (data.packet_data.frame_num != expected_frame) {
|
||||||
if (data.packet_data.frame_num > expected_frame) {
|
if (data.packet_data.frame_num > expected_frame) {
|
||||||
|
|||||||
Reference in New Issue
Block a user