Small fixes
This commit is contained in:
@@ -423,7 +423,7 @@ short handleInput(struct XPCMessage * theMessage)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{ //unrecognized header
|
{ //unrecognized header
|
||||||
sprintf(logmsg,"[EXEC] ERROR: Command %s not recognised",theMessage->head);
|
sprintf(logmsg,"[EXEC] ERROR: Command %s not recognized",theMessage->head);
|
||||||
updateLog(logmsg, strlen(logmsg));
|
updateLog(logmsg, strlen(logmsg));
|
||||||
}
|
}
|
||||||
current_connection = -1;
|
current_connection = -1;
|
||||||
|
|||||||
@@ -380,7 +380,7 @@ int printBufferToLog(struct XPCMessage & msg)
|
|||||||
{// Header = CTRL (Control)
|
{// Header = CTRL (Control)
|
||||||
xpcCtrl ctrl = parseCTRL(msg.msg);
|
xpcCtrl ctrl = parseCTRL(msg.msg);
|
||||||
|
|
||||||
sprintf(logmsg,"%s (%f %f %f) %f %hi %f",logmsg, ctrl.pitch, ctrl.roll, ctrl.yaw, ctrl.throttle, ctrl.gear, ctrl.flaps);
|
sprintf(logmsg,"%s (%f %f %f) %f %hhi %f",logmsg, ctrl.pitch, ctrl.roll, ctrl.yaw, ctrl.throttle, ctrl.gear, ctrl.flaps);
|
||||||
|
|
||||||
updateLog(logmsg,strlen(logmsg));
|
updateLog(logmsg,strlen(logmsg));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user