Read all pending messages.
This commit is contained in:
parent
fa16790a9b
commit
d70120752c
1 changed files with 1 additions and 4 deletions
|
@ -70,12 +70,9 @@ bool FGNative::process() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if ( get_direction() == in ) {
|
} else if ( get_direction() == in ) {
|
||||||
if ( io->read( (char *)(& buf), length ) == length ) {
|
while ( io->read( (char *)(& buf), length ) == length ) {
|
||||||
FG_LOG( FG_IO, FG_ALERT, "Success reading data." );
|
FG_LOG( FG_IO, FG_ALERT, "Success reading data." );
|
||||||
*cur_fdm_state = buf;
|
*cur_fdm_state = buf;
|
||||||
} else {
|
|
||||||
FG_LOG( FG_IO, FG_ALERT, "Error reading data." );
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue