Improve handling of type DOUBLE in generic i/o protocol.
This commit is contained in:
parent
6072e3d969
commit
d0f6f748ed
1 changed files with 2 additions and 2 deletions
|
@ -240,8 +240,8 @@ bool FGGeneric::gen_message_ascii() {
|
|||
|
||||
case FG_DOUBLE:
|
||||
val = _out_message[i].offset +
|
||||
_out_message[i].prop->getFloatValue() * _out_message[i].factor;
|
||||
snprintf(tmp, 255, _out_message[i].format.c_str(), (float)val);
|
||||
_out_message[i].prop->getDoubleValue() * _out_message[i].factor;
|
||||
snprintf(tmp, 255, _out_message[i].format.c_str(), (double)val);
|
||||
break;
|
||||
|
||||
default: // SG_STRING
|
||||
|
|
Loading…
Reference in a new issue