         return;
     }*/
 
-    //lastHost = hostname;
-    //lastPort = port;
+    lastHost = hostname;
+    lastPort = port;
 
     Connect(hostname, port, false);
 }

}

#ifdef HAYES
// ----------------------------------------------------------
// Simple Hayes Emulation
// Portions of this code are adapted from Payton Byrd's Hayesduino - thanks!

boolean Modem_isCommandMode = true;
boolean Modem_isConnected = false;
boolean Modem_isRinging = false;
boolean Modem_EchoOn = EEPROM.read(ADDR_MODEM_ECHO);
boolean Modem_VerboseResponses = true;
boolean Modem_QuietMode = false;
boolean Modem_isDcdInverted = false;

boolean Modem_S0_AutoAnswer = false;
char    Modem_S2_EscapeCharacter = '+';

#define COMMAND_BUFFER_SIZE  81
char Modem_LastCommandBuffer[COMMAND_BUFFER_SIZE];
char Modem_CommandBuffer[COMMAND_BUFFER_SIZE];

int Modem_EscapeCount = 0;

void HayesEmulationMode()
{


#endif

#ifdef HAYES
// ----------------------------------------------------------
// Simple Hayes Emulation
// Portions of this code are adapted from Payton Byrd's Hayesduino - thanks!

boolean Modem_isCommandMode = true;
boolean Modem_isConnected = false;
boolean Modem_isRinging = false;
boolean Modem_EchoOn = EEPROM.read(ADDR_MODEM_ECHO);
boolean Modem_flowControlEnabled = EEPROM.read(ADDR_MODEM_FLOW);
boolean Modem_VerboseResponses = true;
boolean Modem_QuietMode = false;
boolean Modem_isDcdInverted = false;

boolean Modem_S0_AutoAnswer = false;
char    Modem_S2_EscapeCharacter = '+';

#define COMMAND_BUFFER_SIZE  81
char Modem_LastCommandBuffer[COMMAND_BUFFER_SIZE];
char Modem_CommandBuffer[COMMAND_BUFFER_SIZE];

int Modem_EscapeCount = 0;
#endif

byte autostart_mode = EEPROM.read(ADDR_AUTOSTART);    // 0-255 only

// ----------------------------------------------------------
