       if (digitalRead(recpin) == 0)
           break;
     }
-    //while(digitalRead(recpin) == 1 && millis()-3000 < timer){} // wait for low bit to start
     long baud;
     long rate = pulseIn(recpin, LOW); // measure zero bit width from character 'U'
 

                Modem_PrintOK();
            else
                Modem_PrintERROR();
        }
        if (strstr(Modem_CommandBuffer, ("&DEBUG=1")) != NULL)
        {
            updateEEPROMByte(ADDR_DEBUG,1);
        }
        if (strstr(Modem_CommandBuffer, ("&DEBUG=0")) != NULL)
        {
            updateEEPROMByte(ADDR_DEBUG,0);
        }

        char *currentS;

    pinMode (C64_RxD, INPUT);
    digitalWrite (C64_RxD, HIGH);

    Display(F("Baud\ndetection"));

    long detectedBaudRate = detRate(C64_RxD);  // Function finds a standard baudrate of either
    // 1200,2400,4800,9600,14400,19200,28800,38400,57600,115200
