only complain about binary record length mismatch if mode is binary.
This commit is contained in:
parent
971e87bb49
commit
949981a6d7
1 changed files with 9 additions and 7 deletions
|
@ -692,12 +692,14 @@ FGGeneric::read_config(SGPropertyNode *root, vector<_serial_prot> &msg)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (binary_record_length == -1) {
|
if( binary_mode ) {
|
||||||
binary_record_length = record_length;
|
if (binary_record_length == -1) {
|
||||||
} else if (binary_record_length < record_length) {
|
binary_record_length = record_length;
|
||||||
SG_LOG(SG_IO, SG_ALERT,
|
} else if (binary_record_length < record_length) {
|
||||||
"generic protocol: Requested binary record length shorter than "
|
SG_LOG(SG_IO, SG_ALERT,
|
||||||
" requested record representation.");
|
"generic protocol: Requested binary record length shorter than "
|
||||||
binary_record_length = record_length;
|
" requested record representation.");
|
||||||
|
binary_record_length = record_length;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue