mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 12:55:19 +03:00
Tidy
This commit is contained in:
parent
f15d5dd12c
commit
b10412ac9b
2 changed files with 18 additions and 18 deletions
|
@ -500,8 +500,9 @@ long cmsMenuChange(displayPort_t *pDisplay, const void *ptr)
|
|||
{
|
||||
CMS_Menu *pMenu = (CMS_Menu *)ptr;
|
||||
|
||||
if (!pMenu)
|
||||
if (!pMenu) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CMS_MENU_DEBUG
|
||||
if (pMenu->GUARD_type != OME_MENU) {
|
||||
|
@ -547,11 +548,13 @@ STATIC_UNIT_TESTED long cmsMenuBack(displayPort_t *pDisplay)
|
|||
{
|
||||
// Let onExit function decide whether to allow exit or not.
|
||||
|
||||
if (currentCtx.menu->onExit && currentCtx.menu->onExit(pageTop + currentCtx.cursorRow) < 0)
|
||||
if (currentCtx.menu->onExit && currentCtx.menu->onExit(pageTop + currentCtx.cursorRow) < 0) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (!menuStackIdx)
|
||||
if (!menuStackIdx) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
currentCtx = menuStack[--menuStackIdx];
|
||||
|
||||
|
|
|
@ -161,9 +161,6 @@
|
|||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1
|
||||
|
||||
//#define USE_I2C
|
||||
//#define I2C_DEVICE (I2CDEV_2)
|
||||
|
||||
#define USE_SPI
|
||||
#define USE_SPI_DEVICE_1
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue