1
0
Fork 0

only complain about binary record length mismatch if mode is binary.

This commit is contained in:
torsten 2009-09-17 20:17:35 +00:00 committed by Tim Moore
parent 971e87bb49
commit 949981a6d7

View file

@ -692,6 +692,7 @@ FGGeneric::read_config(SGPropertyNode *root, vector<_serial_prot> &msg)
}
if( binary_mode ) {
if (binary_record_length == -1) {
binary_record_length = record_length;
} else if (binary_record_length < record_length) {
@ -700,4 +701,5 @@ FGGeneric::read_config(SGPropertyNode *root, vector<_serial_prot> &msg)
" requested record representation.");
binary_record_length = record_length;
}
}
}