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:
parent
e17354be5c
commit
b768556355
1 changed files with 2 additions and 0 deletions
|
@ -79,6 +79,8 @@ public class SerialPort {
|
|||
return -1;
|
||||
}
|
||||
} else if (rlen > 0) {
|
||||
// Reset the pointer, as we have new data
|
||||
rpos = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue