Skip to content

Commit 80160cd

Browse files
fix: remove incompatible code
1 parent 75e6bd1 commit 80160cd

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

wordclockfunctions.ino_swiss

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ const String clockStringSwiss = "ESPESCHAFUFVIERTUBFZAAZWANZGSIVORABOHWORTUHRHA
99
*/
1010
void drawMinuteIndicator(uint8_t minutes, uint32_t color){
1111
//separate LEDs for minutes in an additional row
12-
{
1312
switch (minutes%5)
1413
{
1514
case 0:
@@ -31,7 +30,6 @@ void drawMinuteIndicator(uint8_t minutes, uint32_t color){
3130
ledmatrix.setMinIndicator(0b1111, color);
3231
break;
3332
}
34-
}
3533
}
3634

3735
/**
@@ -93,20 +91,10 @@ int showStringOnClock(String message, uint32_t color){
9391
* @param minutes minutes of the time value
9492
* @return String time as sentence
9593
*/
96-
String timeToString(uint8_t hours, uint8_t minutes, bool puristModeActive){
94+
String timeToString(uint8_t hours, uint8_t minutes){
9795

9896
//ES IST
99-
String message = "";
100-
101-
if(puristModeActive){
102-
message = "";
103-
if(minutes < 5 || (minutes >=30 && minutes < 35)){
104-
message = "ES ESCH ";
105-
}
106-
}
107-
else{
108-
message = "ES ESCH ";
109-
}
97+
String message = "ES ESCH ";
11098

11199
//show minutes
112100
if(minutes >= 5 && minutes < 10)

0 commit comments

Comments
 (0)