1
0
Fork 0
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:
dongie 2014-04-06 13:42:10 +09:00
parent c0882fd863
commit f336fc8d20
6 changed files with 3492 additions and 3437 deletions

View file

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