 #endif
 
     if (isRxNLCR) {
-      // TODO linefeed conversion, LF => CR+LF
+      // Linefeed conversion, incoming LF => send CR+LF to teletype
       if ((b==LF) && (prevUSBByte!=CR)) {
         // write a CR first
         sendToTTY(CR);

  return c;
}

void sendToUSB(int c) {
  if (c>0) {
    Serial.write(c);
  }
}


bool parity(uint8_t v) {
  bool p = false;
  while (v) {
    p = !p;

  return p;
}


char *yesno(bool f) {
  if (f) return "yes";
  return "no";
}


// ----- Self-test routines ----------------------------------------------------
//
