diff --git a/xpcPlugin/XPCPlugin.cpp b/xpcPlugin/XPCPlugin.cpp index 5dca72b..f65dac8 100755 --- a/xpcPlugin/XPCPlugin.cpp +++ b/xpcPlugin/XPCPlugin.cpp @@ -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; diff --git a/xpcPlugin/xpcDrawing.h b/xpcPlugin/xpcDrawing.h index fe0d9d1..d821222 100644 --- a/xpcPlugin/xpcDrawing.h +++ b/xpcPlugin/xpcDrawing.h @@ -5,4 +5,4 @@ void XPCClearMessage(); void XPCSetMessage(int x, int y, char* msg); -#endif \ No newline at end of file +#endif diff --git a/xpcPlugin/xpcPluginTools.cpp b/xpcPlugin/xpcPluginTools.cpp index 9b52d44..53228c7 100644 --- a/xpcPlugin/xpcPluginTools.cpp +++ b/xpcPlugin/xpcPluginTools.cpp @@ -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));