Skip to content

Commit bbb8f22

Browse files
mrichonerdCopter
authored andcommitted
Add cliExited to cli.h. and set false when opening CLI in msp_serial.c
1 parent 15fc145 commit bbb8f22

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/main/cli/cli.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include <stdbool.h>
2424

2525
extern bool cliMode;
26+
extern bool cliExited;
2627

2728
void cliProcess(void);
2829
bool hasCustomDefaults(void);

src/main/msp/msp_serial.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,7 @@ static void mspEvaluateNonMspData(mspPort_t * mspPort, uint8_t receivedChar)
429429
mspPort->pendingRequest = MSP_PENDING_BOOTLOADER_ROM;
430430
#ifdef USE_CLI
431431
} else if (receivedChar == '#') {
432+
cliExited = false;
432433
mspPort->pendingRequest = MSP_PENDING_CLI;
433434
#endif
434435
#if defined(USE_FLASH_BOOT_LOADER)

0 commit comments

Comments
 (0)