Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Errors compiling TX_v2.0_b008
#1

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.
Reply


Messages In This Thread
Errors compiling TX_v2.0_b008 - by daveh - 18-05-2016, 15:07
RE: Errors compiling TX_v2.0_b008 - by Wizza - 18-05-2016, 21:37
RE: Errors compiling TX_v2.0_b008 - by werk_ag - 18-05-2016, 22:13
RE: Errors compiling TX_v2.0_b008 - by werk_ag - 18-05-2016, 22:08



Users browsing this thread: 1 Guest(s)