Spagetti code cleanup: Moved conversions into separate functions can2pty() and pty2can(). Updated and enhanced some comments. Variable name cleanups inside the separate functions. Fix handling on wrong pty commands (was a wrong 'continue' statement). 
Spagetti code cleanup:
Moved conversions into separate functions can2pty() and pty2can().
Updated and enhanced some comments.
Variable name cleanups inside the separate functions.
Fix handling on wrong pty commands (was a wrong 'continue' statement). 


carloop/can-utils-osx,carloop/can-utils-osx