• P
    xyz-modem: Allow to cancel transfer also by CTRL+C · dffeb400
    Pali Rohár 提交于
    Currently it is possible to cancel loadx and loady commands by pressing
    CTRL+X (CAN character) at least 3 times quickly.
    
    All other U-Boot commands, including loadb and loads can be cancelled by
    CTRL+C. So allow it also in xyz-modem code used by loadx and loady
    commands. Implement it by handling CTRL+C (ETX character) in the same way
    as CTRL+X (CAN character).
    
    Due to how x/y-modem protocol works, it is required to press
    CTRL+C or CTRL+X at least 3 times quickly.
    Signed-off-by: NPali Rohár <pali@kernel.org>
    Reviewed-by: NSimon Glass <sjg@chromium.org>
    dffeb400
xyzModem.c 15.5 KB