comparison packages/redboot/current/src/xyzModem.c @ 1506:56bd97c45aa5

Faster XY-modem startup - from Jani Monoses
author gthomas
date Thu, 19 Feb 2004 10:47:10 +0000
parents 3e80ecaaa3f8
children 9f0d02327506
comparison
equal deleted inserted replaced
1505:f2168dd5be4e 1506:56bd97c45aa5
352 xyz.total_CAN = 0; 352 xyz.total_CAN = 0;
353 #ifdef USE_YMODEM_LENGTH 353 #ifdef USE_YMODEM_LENGTH
354 xyz.read_length = 0; 354 xyz.read_length = 0;
355 xyz.file_length = 0; 355 xyz.file_length = 0;
356 #endif 356 #endif
357
358 CYGACC_COMM_IF_PUTC(*xyz.__chan, (xyz.crc_mode ? 'C' : NAK));
357 359
358 while (retries-- > 0) { 360 while (retries-- > 0) {
359 stat = xyzModem_get_hdr(); 361 stat = xyzModem_get_hdr();
360 if (stat == 0) { 362 if (stat == 0) {
361 // Y-modem file information header 363 // Y-modem file information header