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 <jamie.mccrae@nordicsemi.no>
This commit is contained in:
Jamie McCrae 2023-11-06 14:25:57 +00:00 committed by Jamie
parent 013c9e7654
commit e9fccef5dd
1 changed files with 2 additions and 2 deletions

View File

@ -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;