Improved data logging.

This commit is contained in:
Jason Watkins
2015-04-24 10:30:07 -07:00
parent 625482dcdd
commit 9109056437
3 changed files with 24 additions and 20 deletions

View File

@@ -58,7 +58,7 @@ namespace XPC
void Message::PrintToLog()
{
#if LOG_VERBOSITY > 2
#if LOG_VERBOSITY > 4
std::stringstream ss;
ss << "[DEBUG]";
@@ -91,7 +91,7 @@ namespace XPC
float thr = *((float*)(buffer + 17));
char gear = buffer[21];
float flaps = *((float*)(buffer + 22));
std::uint8_t aircraft = 0;
unsigned char aircraft = 0;
if (size == 27)
{
aircraft = buffer[26];