mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 03:20:00 +03:00
Fix compiler warning regarding failsafeIndicator
This commit is contained in:
parent
fbc3a8e1eb
commit
581b0cd897
2 changed files with 4 additions and 4 deletions
|
@ -15,15 +15,15 @@
|
||||||
* is using in the C source code, usually in main.c. This file contains:
|
* is using in the C source code, usually in main.c. This file contains:
|
||||||
* - Configuration section that allows to select:
|
* - Configuration section that allows to select:
|
||||||
* - The device used in the target application
|
* - The device used in the target application
|
||||||
* - To use or not the peripheral’s drivers in application code(i.e.
|
* - To use or not the peripheral<EFBFBD>s drivers in application code(i.e.
|
||||||
* code will be based on direct access to peripheral’s registers
|
* code will be based on direct access to peripheral<EFBFBD>s registers
|
||||||
* rather than drivers API), this option is controlled by
|
* rather than drivers API), this option is controlled by
|
||||||
* "#define USE_STDPERIPH_DRIVER"
|
* "#define USE_STDPERIPH_DRIVER"
|
||||||
* - To change few application-specific parameters such as the HSE
|
* - To change few application-specific parameters such as the HSE
|
||||||
* crystal frequency
|
* crystal frequency
|
||||||
* - Data structures and the address mapping for all peripherals
|
* - Data structures and the address mapping for all peripherals
|
||||||
* - Peripheral's registers declarations and bits definition
|
* - Peripheral's registers declarations and bits definition
|
||||||
* - Macros to access peripheral’s registers hardware
|
* - Macros to access peripheral<EFBFBD>s registers hardware
|
||||||
*
|
*
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
* @attention
|
* @attention
|
||||||
|
|
|
@ -212,7 +212,7 @@ void updateRxStatus(void)
|
||||||
|
|
||||||
void updateFailsafeStatus(void)
|
void updateFailsafeStatus(void)
|
||||||
{
|
{
|
||||||
char failsafeIndicator;
|
char failsafeIndicator = '?';
|
||||||
switch (failsafePhase()) {
|
switch (failsafePhase()) {
|
||||||
case FAILSAFE_IDLE:
|
case FAILSAFE_IDLE:
|
||||||
failsafeIndicator = '-';
|
failsafeIndicator = '-';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue