mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-19 05:40:38 +01:00
[apps] Set the backlight brightness at maximum when plugging the USB
Change-Id: If544eaa5b34fecc1117beb82909f1f5c8a82760f
This commit is contained in:
@@ -20,6 +20,9 @@ bool USBTimer::fire() {
|
||||
KDColor LEDColor = Ion::Battery::isCharging() ? KDColorYellow : KDColorGreen;
|
||||
Ion::LED::setColor(LEDColor);
|
||||
#endif
|
||||
if (!m_previousPluggedState) {
|
||||
Ion::Backlight::setBrightness(Ion::Backlight::MaxBrightness);
|
||||
}
|
||||
m_previousPluggedState = true;
|
||||
} else {
|
||||
if (m_previousPluggedState) {
|
||||
|
||||
Reference in New Issue
Block a user