Author Topic: disabling serial port  (Read 6618 times)

Offline neil

  • Sr. Member
  • ****
  • Posts: 438
    • View Profile
disabling serial port
« on: November 15, 2010, 04:35:43 PM »
Hi Mark,
  I wish to use serial port 0  for my own application, but utasker sends information out on this port with various info. I dont want to go through all utasker and comment the  lines out, as sometimes I wish to use this port as diagnostics.  Can I simply set DebugHandle = 0? Or do I have to do something else?

Thanks
Neil

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3236
    • View Profile
    • uTasker
Re: disabling serial port
« Reply #1 on: November 15, 2010, 04:52:05 PM »
Hi Neil

The following (in application.c) is setting debug output to the serial port:

DebugHandle = SerialPortID;


If you comment out this line debug output will no longer be sent there and you can use the serial output for other functions without the debug messages appearing. The debug messages will be sent to the TELNET output when there is a connection and the project uses TELNET. When there is no TELNET connection they are discarded.

Regards

Mark


Offline neil

  • Sr. Member
  • ****
  • Posts: 438
    • View Profile
Re: disabling serial port
« Reply #2 on: November 15, 2010, 05:13:59 PM »
Thanks Mark

Neil