console.writeline on disconnect()?

  • 1
  • Question
  • Updated 5 years ago

When calling radio.disconnect(), it looks like there might be a console.writeline somewhere in the code.  Any chance that can be removed? :-)  I can't find a way to cast it to void or send it (easily) to null or anything.  Not a big thing, just an annoyance.  Looks like it is printed twice if there is an active connection to the radio, but only once if there isn't an active connection already established.

Thanks!

-Robbie


Photo of Robbie - KI4TTZ

Robbie - KI4TTZ

  • 480 Posts
  • 77 Reply Likes

Posted 5 years ago

  • 1
Photo of Eric - KE5DTO

Eric - KE5DTO, Official Rep

  • 717 Posts
  • 211 Reply Likes
Robbie,

There are a handful of debug printouts like this in the FlexLib source.  You can safely comment them without issue.  Usually they are Debug.WriteLine calls so that they don't end up in release code.  This one looks like it was in Console.WriteLine as we were testing a condition that only happened in Release mode.

I have commented this one in our source so this shouldn't appear in future updates to the library.  Thanks for catching this and let us know if you have any additional questions.
Photo of Richard Clafton W4/G7EIX

Richard Clafton W4/G7EIX, Elmer

  • 455 Posts
  • 117 Reply Likes
Line 136

D:\Visual Studio 2013\flexlib\FlexLib_API\Cat\Cat\Main.cs(136): Console.WriteLine("Radio removed: " + radio.ToString());
Photo of Robbie - KI4TTZ

Robbie - KI4TTZ

  • 480 Posts
  • 77 Reply Likes
Thanks Eric, I appreciate it! :-)