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:
|
case FG_DOUBLE:
|
||||||
val = _out_message[i].offset +
|
val = _out_message[i].offset +
|
||||||
_out_message[i].prop->getFloatValue() * _out_message[i].factor;
|
_out_message[i].prop->getDoubleValue() * _out_message[i].factor;
|
||||||
snprintf(tmp, 255, _out_message[i].format.c_str(), (float)val);
|
snprintf(tmp, 255, _out_message[i].format.c_str(), (double)val);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default: // SG_STRING
|
default: // SG_STRING
|
||||||
|
|
Loading…
Add table
Reference in a new issue