changeset 1506:56bd97c45aa5

Faster XY-modem startup - from Jani Monoses
author gthomas
date Thu, 19 Feb 2004 10:47:10 +0000
parents f2168dd5be4e
children 92cf4ff674de
files packages/redboot/current/ChangeLog packages/redboot/current/src/xyzModem.c
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/packages/redboot/current/ChangeLog
+++ b/packages/redboot/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-02-19  Jani Monoses <jani@iv.ro>
+
+	* src/xyzModem.c: Start with sending a 'C', do not wait until the
+	first packet from the sender.This allows download to start quicker.
+	
 2004-02-16  Andrew Dyer  <adyer@righthandtech.com>
 
 	* src/main.c: add 'go' options to help string
--- a/packages/redboot/current/src/xyzModem.c
+++ b/packages/redboot/current/src/xyzModem.c
@@ -354,6 +354,8 @@ xyzModem_stream_open(connection_info_t *
     xyz.read_length = 0;
     xyz.file_length = 0;
 #endif
+    
+    CYGACC_COMM_IF_PUTC(*xyz.__chan, (xyz.crc_mode ? 'C' : NAK));
 
     while (retries-- > 0) {
         stat = xyzModem_get_hdr();