1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 08:55:25 +02:00

Bug 482950. Reset the read pointer when array is filled with new data

Change-Id: I4bc9d2969d4ef69657d8a825659cafbc3680119c
Signed-off-by: Waqas Ilyas <waqas.ilyas@gmail.com>
This commit is contained in:
Waqas Ilyas 2018-05-02 15:19:26 -05:00 committed by Jonah Graham
parent e17354be5c
commit b768556355

View file

@ -79,6 +79,8 @@ public class SerialPort {
return -1;
}
} else if (rlen > 0) {
// Reset the pointer, as we have new data
rpos = 0;
break;
}
}