Small fixes
This commit is contained in:
@@ -423,7 +423,7 @@ short handleInput(struct XPCMessage * theMessage)
|
||||
}
|
||||
else
|
||||
{ //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));
|
||||
}
|
||||
current_connection = -1;
|
||||
|
||||
@@ -5,4 +5,4 @@ void XPCClearMessage();
|
||||
|
||||
void XPCSetMessage(int x, int y, char* msg);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -380,7 +380,7 @@ int printBufferToLog(struct XPCMessage & msg)
|
||||
{// Header = CTRL (Control)
|
||||
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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user