forked from btclock/btclock_v3
Fixes for Rev. B black PCB
This commit is contained in:
parent
630943ec54
commit
5dd47c2275
8 changed files with 37 additions and 13 deletions
|
@ -13,7 +13,7 @@ bool flInTransition = false;
|
|||
|
||||
void frontlightFlash(int flDelayTime)
|
||||
{
|
||||
if (preferences.getBool("flDisable", DEFAULT_DISABLE_FL))
|
||||
if (preferences.getBool("flDisable"))
|
||||
return;
|
||||
|
||||
if (frontlightOn)
|
||||
|
@ -68,7 +68,7 @@ void frontlightFadeInAll(int flDelayTime)
|
|||
|
||||
void frontlightFadeInAll(int flDelayTime, bool staggered)
|
||||
{
|
||||
if (preferences.getBool("flDisable", DEFAULT_DISABLE_FL))
|
||||
if (preferences.getBool("flDisable"))
|
||||
return;
|
||||
if (frontlightIsOn())
|
||||
return;
|
||||
|
@ -120,7 +120,7 @@ void frontlightFadeOutAll(int flDelayTime)
|
|||
|
||||
void frontlightFadeOutAll(int flDelayTime, bool staggered)
|
||||
{
|
||||
if (preferences.getBool("flDisable", DEFAULT_DISABLE_FL))
|
||||
if (preferences.getBool("flDisable"))
|
||||
return;
|
||||
if (!frontlightIsOn())
|
||||
return;
|
||||
|
@ -186,7 +186,7 @@ bool frontlightIsOn()
|
|||
|
||||
void frontlightFadeIn(uint num, int flDelayTime)
|
||||
{
|
||||
if (preferences.getBool("flDisable", DEFAULT_DISABLE_FL))
|
||||
if (preferences.getBool("flDisable"))
|
||||
return;
|
||||
for (int dutyCycle = 0; dutyCycle <= preferences.getUInt("flMaxBrightness"); dutyCycle += 5)
|
||||
{
|
||||
|
@ -197,7 +197,7 @@ void frontlightFadeIn(uint num, int flDelayTime)
|
|||
|
||||
void frontlightFadeOut(uint num, int flDelayTime)
|
||||
{
|
||||
if (preferences.getBool("flDisable", DEFAULT_DISABLE_FL))
|
||||
if (preferences.getBool("flDisable"))
|
||||
return;
|
||||
if (!frontlightIsOn())
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue