Don't reset programming target until actual image data is received from network.

Thanks!
pull/140/merge
Jason Schmidlapp 9 years ago committed by Thorsten von Eicken
parent e3e19ffa38
commit 5eba5500ac
  1. 5
      serial/serbridge.c

@ -177,8 +177,11 @@ serbridgeRecvCb(void *arg, char *data, unsigned short len)
(len == 2 && strncmp(data, "?\n", 2) == 0) || (len == 2 && strncmp(data, "?\n", 2) == 0) ||
(len == 3 && strncmp(data, "?\r\n", 3) == 0)) { (len == 3 && strncmp(data, "?\r\n", 3) == 0)) {
startPGM = true; startPGM = true;
conn->conn_mode = cmPGM;
// Don't actually reboot the target until we've actually received
// serial data to send to the target.
conn->conn_mode = cmPGMInit;
return;
// If the connection starts with a telnet negotiation we will do telnet // If the connection starts with a telnet negotiation we will do telnet
} }
else if (len >= 3 && strncmp(data, (char[]){IAC, WILL, ComPortOpt}, 3) == 0) { else if (len >= 3 && strncmp(data, (char[]){IAC, WILL, ComPortOpt}, 3) == 0) {

Loading…
Cancel
Save