1
0
Fork 0

Read all pending messages.

This commit is contained in:
curt 2000-01-21 18:02:19 +00:00
parent fa16790a9b
commit d70120752c

View file

@ -70,12 +70,9 @@ bool FGNative::process() {
return false;
}
} 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." );
*cur_fdm_state = buf;
} else {
FG_LOG( FG_IO, FG_ALERT, "Error reading data." );
return false;
}
}