mirror of
https://github.com/opentx/opentx.git
synced 2025-07-19 14:25:11 +03:00
Rework rssi code a bit (#5507)
* Switch backlight on when displaying a warning. This is especially visible on the power off RSSI warning. This will also show the other warnings at start with backlight, even when blocklight is set to always off. But my X9D+ will switch its backlight on after boot once even with backlight on, so backlight=off is not so off as it seems. * Rework power rssi code a bit - Cleanup shutdown_confirm code - allow x9d+ to be compiled as power button too to be able to test these things on the x9d+ - Fix shutoff after 10s in warning dialog on x9d - Make warning dialog always turn on backlight * Revert CMakeLists.txt
This commit is contained in:
parent
977262232a
commit
59d2ef8aa1
6 changed files with 12 additions and 25 deletions
|
@ -88,11 +88,6 @@ uint16_t stackAvailable()
|
|||
|
||||
volatile uint16_t timeForcePowerOffPressed = 0;
|
||||
|
||||
void resetForcePowerOffRequest()
|
||||
{
|
||||
timeForcePowerOffPressed = 0;
|
||||
}
|
||||
|
||||
bool isForcePowerOffRequested()
|
||||
{
|
||||
if (pwrOffPressed()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue