mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 19:40:31 +03:00
Revive visual indication of gyro detection failure
This commit is contained in:
parent
02e0d2e1c4
commit
2c7970a9ed
3 changed files with 10 additions and 3 deletions
|
@ -164,9 +164,8 @@ void delay(uint32_t ms)
|
|||
#define SHORT_FLASH_DURATION 50
|
||||
#define CODE_FLASH_DURATION 250
|
||||
|
||||
void failureMode(failureMode_e mode)
|
||||
void failureLedCode(failureMode_e mode, int codeRepeatsRemaining)
|
||||
{
|
||||
int codeRepeatsRemaining = 10;
|
||||
int codeFlashesRemaining;
|
||||
int shortFlashesRemaining;
|
||||
|
||||
|
@ -201,6 +200,12 @@ void failureMode(failureMode_e mode)
|
|||
delay(1000);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void failureMode(failureMode_e mode)
|
||||
{
|
||||
failureLedCode(mode, 10);
|
||||
|
||||
#ifdef DEBUG
|
||||
systemReset();
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue