mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 08:15:30 +03:00
allow configurable bootloader reboot character to workaround retarded BT adapters that spam 'R'
This commit is contained in:
parent
c0882fd863
commit
f336fc8d20
6 changed files with 3492 additions and 3437 deletions
12
src/serial.c
12
src/serial.c
|
@ -632,14 +632,10 @@ static void evaluateCommand(void)
|
|||
// evaluate all other incoming serial data
|
||||
static void evaluateOtherData(uint8_t sr)
|
||||
{
|
||||
switch (sr) {
|
||||
case '#':
|
||||
cliProcess();
|
||||
break;
|
||||
case 'R':
|
||||
systemReset(true); // reboot to bootloader
|
||||
break;
|
||||
}
|
||||
if (sr == '#')
|
||||
cliProcess();
|
||||
else if (sr == mcfg.reboot_character)
|
||||
systemReset(true); // reboot to bootloader
|
||||
}
|
||||
|
||||
void serialCom(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue