fixed transport bug which caused sml_file drops
This commit is contained in:
parent
ff4261ec15
commit
0f64abfb81
2 changed files with 3 additions and 3 deletions
|
@ -24,7 +24,7 @@ Copyright 2011 Juri Glass, Mathias Runge, Nadim El Sayed - DAI-Labor, TU-Berlin
|
|||
libSML is licensed with the GPL, other licenses are available.
|
||||
|
||||
### Thanks
|
||||
Steffen Vogel, Thorben Thuermer, Daniel Pauli
|
||||
Steffen Vogel, Thorben Thuermer, Daniel Pauli, He Bowei
|
||||
|
||||
#### Thirdparty Acknowledgements
|
||||
This product includes software developed for the Unity Project, by Mike Karlesky, Mark VanderVoord, and Greg Williams and other contributors
|
|
@ -76,9 +76,9 @@ size_t sml_transport_read(int fd, unsigned char *buffer, size_t max_len) {
|
|||
if (esc == 4) {
|
||||
if (end) {
|
||||
end++;
|
||||
if (end == 5) {
|
||||
if (end == 4) {
|
||||
memcpy(buffer, &(buf[0]), i);
|
||||
return i;
|
||||
return i + 1;
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Reference in a new issue