Skip to content

Commit 1d710ba

Browse files
committed
Improve rev. B startup flow, webUI fixes
1 parent 4f4e37e commit 1d710ba

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

data

Submodule data updated from 59e2750 to 124c810

src/lib/config.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,6 @@ void setupFrontlight()
746746
preferences.putBool("flFlashOnUpd", false);
747747
}
748748

749-
frontlightFadeInAll(preferences.getUInt("flEffectDelay"), true);
750749
}
751750

752751
float getLightLevel() {

src/lib/led_handler.cpp

+8-3
Original file line numberDiff line numberDiff line change
@@ -159,19 +159,21 @@ void frontlightFadeOutAll(int flDelayTime, bool staggered)
159159
flInTransition = false;
160160
}
161161

162-
std::vector<uint16_t> frontlightGetStatus() {
162+
std::vector<uint16_t> frontlightGetStatus()
163+
{
163164
std::vector<uint16_t> statuses;
164165
for (int ledPin = 1; ledPin <= NUM_SCREENS; ledPin++)
165166
{
166167
uint16_t a = 0, b = 0;
167168
flArray.getPWM(ledPin, &a, &b);
168-
statuses.push_back(round(b-a/4096));
169+
statuses.push_back(round(b - a / 4096));
169170
}
170171

171172
return statuses;
172173
}
173174

174-
bool frontlightIsOn() {
175+
bool frontlightIsOn()
176+
{
175177
return frontlightOn;
176178
}
177179

@@ -223,6 +225,9 @@ void ledTask(void *parameter)
223225
switch (ledTaskParams)
224226
{
225227
case LED_POWER_TEST:
228+
#ifdef HAS_FRONTLIGHT
229+
frontlightFadeInAll(preferences.getUInt("flEffectDelay"), true);
230+
#endif
226231
ledRainbow(20);
227232
pixels.clear();
228233
break;

0 commit comments

Comments
 (0)