1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-16 12:55:12 +03:00

C function backlightOn() renamed to resetBacklightTimeout()

This commit is contained in:
Bertrand Songis 2020-03-27 10:43:06 +01:00
parent 2873f7fd4d
commit fdf77fb476
No known key found for this signature in database
GPG key ID: F189F79290FEC50F
11 changed files with 15 additions and 15 deletions

View file

@ -46,7 +46,7 @@ void showAlertBox(const char * title, const char * text, const char * action, ui
lcdRefresh();
lcdSetContrast();
waitKeysReleased();
backlightOn();
resetBacklightTimeout();
checkBacklight();
}

View file

@ -227,7 +227,7 @@ void showAlertBox(const char * title, const char * text, const char * action , u
lcdRefresh();
lcdSetContrast();
waitKeysReleased();
backlightOn();
resetBacklightTimeout();
checkBacklight();
}

View file

@ -72,7 +72,7 @@ Reset the backlight timeout
static int luaLcdResetBacklightTimeout(lua_State * L)
{
if (!luaLcdAllowed) return 0;
backlightOn();
resetBacklightTimeout();
return 0;
}

View file

@ -687,7 +687,7 @@ void checkBacklight()
if (inputsMoved()) {
inactivity.counter = 0;
if (g_eeGeneral.backlightMode & e_backlight_mode_sticks) {
backlightOn();
resetBacklightTimeout();
}
}
@ -700,7 +700,7 @@ void checkBacklight()
}
}
void backlightOn()
void resetBacklightTimeout()
{
lightOffCounter = ((uint16_t)g_eeGeneral.lightAutoOff*250) << 1;
}
@ -727,7 +727,7 @@ void doSplash()
#endif
if (SPLASH_NEEDED()) {
backlightOn();
resetBacklightTimeout();
drawSplash();
#if defined(PCBSKY9X)
@ -1977,7 +1977,7 @@ void opentxInit()
if (g_eeGeneral.backlightMode != e_backlight_mode_off) {
// on Tx start turn the light on
backlightOn();
resetBacklightTimeout();
}
if (!globalData.unexpectedShutdown) {
@ -1995,7 +1995,7 @@ void opentxInit()
lcdSetContrast();
#endif
backlightOn();
resetBacklightTimeout();
startPulses();

View file

@ -635,7 +635,7 @@ static inline void GET_ADC_IF_MIXER_NOT_RUNNING()
#include "sbus.h"
void backlightOn();
void resetBacklightTimeout();
void checkBacklight();
#define BITMASK(bit) (1<<(bit))

View file

@ -642,7 +642,7 @@ void checkSwitches()
}
LED_ERROR_BEGIN();
backlightOn();
resetBacklightTimeout();
// first - display warning
#if defined(PCBTARANIS) || defined(PCBHORUS)

View file

@ -104,7 +104,7 @@ void rotaryEncoderCheck()
#endif
#if !defined(BOOT)
if (g_eeGeneral.backlightMode & e_backlight_mode_keys) {
backlightOn();
resetBacklightTimeout();
}
inactivity.counter = 0;
#endif

View file

@ -107,7 +107,7 @@ void readKeysAndTrims()
if ((keys_input || trims_input) && (g_eeGeneral.backlightMode & e_backlight_mode_keys)) {
// on keypress turn the light on
backlightOn();
resetBacklightTimeout();
}
}

View file

@ -501,7 +501,7 @@ void readKeysAndTrims()
}
if (keysInput || trimsInput) {
backlightOn();
resetBacklightTimeout();
}
}

View file

@ -109,7 +109,7 @@ void readKeysAndTrims()
if ((keys_input || trims_input) && (g_eeGeneral.backlightMode & e_backlight_mode_keys)) {
// on keypress turn the light on
backlightOn();
resetBacklightTimeout();
}
}

View file

@ -130,7 +130,7 @@ void readKeysAndTrims()
if ((keys_input || trims_input) && (g_eeGeneral.backlightMode & e_backlight_mode_keys)) {
#endif
// on keypress turn the light on
backlightOn();
resetBacklightTimeout();
}
}