|
@@ -469,7 +469,6 @@ void shellmatta_ymodem_ack(shellmatta_handle_t handle)
|
|
|
*/
|
|
|
void shellmatta_ymodem_nak(shellmatta_handle_t handle)
|
|
|
{
|
|
|
- shellmatta_ymodem_control(handle, YMODEM_NAK);
|
|
|
shellmatta_ymodem_set_state(handle, WAIT_FOR_START);
|
|
|
/* set back current data type to prevent false forward stepping */
|
|
|
switch (shellmatta_ymodem_current_data_type)
|
|
@@ -479,11 +478,12 @@ void shellmatta_ymodem_nak(shellmatta_handle_t handle)
|
|
|
break;
|
|
|
|
|
|
case YMODEM_HEADER:
|
|
|
- shellmatta_ymodem_current_data_type = YMODEM_NONE;
|
|
|
+ // shellmatta_ymodem_current_data_type = YMODEM_NONE;
|
|
|
break;
|
|
|
|
|
|
case YMODEM_BODY:
|
|
|
/* YMODEM_BODY stays in YMODEM_BODY */
|
|
|
+ shellmatta_ymodem_control(handle, YMODEM_NAK);
|
|
|
shellmatta_ymodem_current_data_type = YMODEM_BODY;
|
|
|
break;
|
|
|
|
|
@@ -540,4 +540,4 @@ void shellmatta_ymodem_reset(shellmatta_handle_t handle, bool doCancel)
|
|
|
/* re-enable transport layer */
|
|
|
((shellmatta_instance_t*)handle)->transportEnabled = true;
|
|
|
#endif
|
|
|
-}
|
|
|
+}
|