Skip to content

Commit e9fccef

Browse files
committed
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: Jamie McCrae <[email protected]>
1 parent 013c9e7 commit e9fccef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

boot/boot_serial/src/boot_serial.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,11 +1023,11 @@ boot_serial_input(char *buf, int len)
10231023
}
10241024
} else if (hdr->nh_group == MGMT_GROUP_ID_DEFAULT) {
10251025
switch (hdr->nh_id) {
1026-
case NMGR_ID_ECHO:
10271026
#ifdef MCUBOOT_BOOT_MGMT_ECHO
1027+
case NMGR_ID_ECHO:
10281028
bs_echo(buf, len);
1029-
#endif
10301029
break;
1030+
#endif
10311031
case NMGR_ID_CONS_ECHO_CTRL:
10321032
bs_rc_rsp(0);
10331033
break;

0 commit comments

Comments
 (0)