1
0
Fork 0

Improve handling of type DOUBLE in generic i/o protocol.

This commit is contained in:
ehofman 2010-02-10 08:19:05 +00:00 committed by Tim Moore
parent 6072e3d969
commit d0f6f748ed

View file

@ -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