18-05-2016, 15:07
While trying to debug a problem with my newly build system I turned on some debugging in the TX software and came up against errors when I tried to compile it.
I changed the #define for Debug_Enable, DebugID0, DebugID2, DebugID3 and DebugID5 from false to true.
The errors from the compiler were -
Debug.ino: In function 'void printDebugID2()':
Debug.ino:37:20: error: 'WindDir_Text' was not declared in this scope
Process_IDx.ino: In function 'void send_SensorID2()':
Process_IDx.ino:73:3: error: 'WindDir_Text' was not declared in this scope
Process_IDx.ino:73:21: error: 'vaneDirectionsText' was not declared in this scope
Error compiling.
The solution I found was to change a line in the main ino file from
#if Local_TestMode == 1
to
#if DebugID2
which causes the variables to get defined. I couldn't find any other references to Local_TestMode.
I also had problems compiling because printDebugID2() has statements uncommented to print to an lcd. I simply had to comment those out and uncomment the Serial.print statements.
I changed the #define for Debug_Enable, DebugID0, DebugID2, DebugID3 and DebugID5 from false to true.
The errors from the compiler were -
Debug.ino: In function 'void printDebugID2()':
Debug.ino:37:20: error: 'WindDir_Text' was not declared in this scope
Process_IDx.ino: In function 'void send_SensorID2()':
Process_IDx.ino:73:3: error: 'WindDir_Text' was not declared in this scope
Process_IDx.ino:73:21: error: 'vaneDirectionsText' was not declared in this scope
Error compiling.
The solution I found was to change a line in the main ino file from
#if Local_TestMode == 1
to
#if DebugID2
which causes the variables to get defined. I couldn't find any other references to Local_TestMode.
I also had problems compiling because printDebugID2() has statements uncommented to print to an lcd. I simply had to comment those out and uncomment the Serial.print statements.


)....