Procházet zdrojové kódy

temporary changes for debugging

Fischer, Simon | Friedrich Lütze GmbH před 1 rokem
rodič
revize
681baae0d0
2 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. 1 1
      src/shellmatta.c
  2. 3 3
      src/shellmatta_ymodem.c

+ 1 - 1
src/shellmatta.c

@@ -139,7 +139,7 @@ static shellmatta_retCode_t shellmatta_processDataInt(shellmatta_handle_t     ha
                     if (yModemState == WAIT_FOR_START)
                     {
                         /** -# explicitly reset ymodem with cancel, if it was active */
-                        shellmatta_ymodem_reset(handle, true);
+                        // shellmatta_ymodem_reset(handle, true);
                     }
                 }
                 ret = SHELLMATTA_OK;

+ 3 - 3
src/shellmatta_ymodem.c

@@ -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
-}
+}