Browse Source

send cancel symbol in case of reset with cancel

Fischer, Simon | Friedrich Lütze GmbH 1 year ago
parent
commit
8ba735f375
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/shellmatta_ymodem.c

+ 2 - 0
src/shellmatta_ymodem.c

@@ -526,6 +526,8 @@ void shellmatta_ymodem_reset(shellmatta_handle_t handle, bool doCancel)
     /* call cancel callback function */
     /* call cancel callback function */
     if (doCancel)
     if (doCancel)
     {
     {
+        /* send cancel symbol */
+        shellmatta_ymodem_control(handle, YMODEM_CA);
         if (shellmatta_ymodem_callbacks.yModemCancelCallback != (void*)0u)
         if (shellmatta_ymodem_callbacks.yModemCancelCallback != (void*)0u)
         {
         {
             shellmatta_ymodem_callbacks.yModemCancelCallback();
             shellmatta_ymodem_callbacks.yModemCancelCallback();