I am building a torch height controller for a CNC plasma cutting system. The schematic diagram is irrelevant to this question.
Accept my apology if I sound rude because I know that help received on this forum is voluntary, but did anyone who responded actually read the part of the post where I described the problem? I'm asking this because while there have been several responses, none of them appear to have anything to do with the issue I posted about.
Why does the inclusion of the serial.println() statement allow the pulse to be generated but a serial.print() or no print statement and it does not generate the pulse.
Thanks for pointing that out. This if/else construct was added as a way to demonstrate the problem to the forum readers so it is not what is causing the issue that I described.
[quote]What is this weird looking expression supposed to do? I know what it does.
[/quote]
It does this
char c = '-1';
but without the compiler warning.