mirror of
https://github.com/btclock/btclock_v3.git
synced 2024-11-19 03:30:02 +01:00
Improve rev. B startup flow, webUI fixes
This commit is contained in:
parent
4f4e37ec3c
commit
1d710ba7f7
2
data
2
data
@ -1 +1 @@
|
||||
Subproject commit 59e2750cf3bc53958f9714d0daf8d26b9d1b441f
|
||||
Subproject commit 124c810e291a0c642da619f3c00109240c7a061a
|
@ -746,7 +746,6 @@ void setupFrontlight()
|
||||
preferences.putBool("flFlashOnUpd", false);
|
||||
}
|
||||
|
||||
frontlightFadeInAll(preferences.getUInt("flEffectDelay"), true);
|
||||
}
|
||||
|
||||
float getLightLevel() {
|
||||
|
@ -159,7 +159,8 @@ void frontlightFadeOutAll(int flDelayTime, bool staggered)
|
||||
flInTransition = false;
|
||||
}
|
||||
|
||||
std::vector<uint16_t> frontlightGetStatus() {
|
||||
std::vector<uint16_t> frontlightGetStatus()
|
||||
{
|
||||
std::vector<uint16_t> statuses;
|
||||
for (int ledPin = 1; ledPin <= NUM_SCREENS; ledPin++)
|
||||
{
|
||||
@ -171,7 +172,8 @@ std::vector<uint16_t> frontlightGetStatus() {
|
||||
return statuses;
|
||||
}
|
||||
|
||||
bool frontlightIsOn() {
|
||||
bool frontlightIsOn()
|
||||
{
|
||||
return frontlightOn;
|
||||
}
|
||||
|
||||
@ -223,6 +225,9 @@ void ledTask(void *parameter)
|
||||
switch (ledTaskParams)
|
||||
{
|
||||
case LED_POWER_TEST:
|
||||
#ifdef HAS_FRONTLIGHT
|
||||
frontlightFadeInAll(preferences.getUInt("flEffectDelay"), true);
|
||||
#endif
|
||||
ledRainbow(20);
|
||||
pixels.clear();
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user