Skip to content

Commit

Permalink
boot_serial: Fix missing response if echo command disabled
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
nordicjm committed Nov 7, 2023
1 parent 013c9e7 commit e9fccef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions boot/boot_serial/src/boot_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e9fccef

Please sign in to comment.