 
 void Incoming()
 {
-    int localport = wifly.getPort();
+    int localport = WiFlyLocalPort;
 
     //C64Println();
     C64Print(F("\nIncoming port ("));

            while(1);            
    }

    localport = wifly.getPort();

    //C64Println();
    C64Print(F("\nWaiting for connection on port "));
    C64Serial.println(localport);

    // Idle here until connected
    while (!wifly.isConnected())  {}

    C64Println(F("Incoming Connection"));

    TerminalMode();
}
// ----------------------------------------------------------

boolean Modem_flowControl = false;   // for &K setting.
boolean Modem_isDcdInverted = false;
boolean Modem_DCDFollowsRemoteCarrier = false;    // &C
int WiFlyLocalPort = 0;

// PETSCII state
boolean petscii_mode = EEPROM.read(ADDR_PETSCII);
