Jelajahi Sumber

Fix all tube bright settings.

Vladimir N. Shilov 2 tahun lalu
induk
melakukan
d48b0080ec
1 mengubah file dengan 9 tambahan dan 5 penghapusan
  1. 9 5
      Src/clock.c

+ 9 - 5
Src/clock.c

@@ -78,7 +78,7 @@ static void check_DayNight(void) {
     LightingColour = Lighting.name.NightColour;
   }
 
-  tube_BrightLevel(Tube_All, LightingBright);
+  //tube_BrightLevel(Tube_All, LightingBright);
   TUBES_BRIGHT(LightingBright);
 }
 
@@ -886,7 +886,8 @@ void setIncDayHour(void) {
 
 void setIncDayBright(void) {
   dvalIncrease(&setLighting.name.DayBright, MAX_BRIGHT_LVL);
-  tube_BrightLevel(Tube_All, setLighting.name.DayBright);
+  //tube_BrightLevel(Tube_All, setLighting.name.DayBright);
+  TUBES_BRIGHT(setLighting.name.DayBright);
 }
 
 void setIncDayMode(void) {
@@ -909,7 +910,8 @@ void setDecDayHour(void) {
 
 void setDecDayBright(void) {
   dvalDecrease(&setLighting.name.DayBright, MAX_BRIGHT_LVL);
-  tube_BrightLevel(Tube_All, setLighting.name.DayBright);
+  //tube_BrightLevel(Tube_All, setLighting.name.DayBright);
+  TUBES_BRIGHT(setLighting.name.DayBright);
 }
 
 void setDecDayMode(void) {
@@ -932,7 +934,8 @@ void setIncNightHour(void) {
 
 void setIncNightBright(void) {
   dvalIncrease(&setLighting.name.NightBright, MAX_BRIGHT_LVL);
-  tube_BrightLevel(Tube_All, setLighting.name.NightBright);
+  //tube_BrightLevel(Tube_All, setLighting.name.NightBright);
+  TUBES_BRIGHT(setLighting.name.NightBright);
 }
 
 void setIncNightMode(void) {
@@ -955,7 +958,8 @@ void setDecNightHour(void) {
 
 void setDecNightBright(void) {
   dvalDecrease(&setLighting.name.NightBright, MAX_BRIGHT_LVL);
-  tube_BrightLevel(Tube_All, setLighting.name.NightBright);
+  //tube_BrightLevel(Tube_All, setLighting.name.NightBright);
+  TUBES_BRIGHT(setLighting.name.NightBright);
 }
 
 void setDecNightMode(void) {