Commit e9fccef5 authored by Jamie McCrae's avatar Jamie McCrae Committed by Jamie
Browse files

boot_serial: Fix missing response if echo command disabled

Fixes an issue whereby when an echo command is sent in serial
recovery mode, if it is disabled, there would just be no response
at all, which is invalid operation

Signed-off-by: default avatarJamie McCrae <jamie.mccrae@nordicsemi.no>
parent 013c9e76
Loading
Loading
Loading
Loading
+2 −2
Changes for boot/boot_serial/src/boot_serial.c: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -1023,11 +1023,11 @@ boot_serial_input(char *buf, int len)
        }
    } else if (hdr->nh_group == MGMT_GROUP_ID_DEFAULT) {
        switch (hdr->nh_id) {
        case NMGR_ID_ECHO:
#ifdef MCUBOOT_BOOT_MGMT_ECHO
        case NMGR_ID_ECHO:
            bs_echo(buf, len);
#endif
            break;
#endif
        case NMGR_ID_CONS_ECHO_CTRL:
            bs_rc_rsp(0);
            break;