fuzzyw: define f_string

As `let` was accidentally left out after the refactor on latest previous commit. To appease the linter and not pollute global scope.
pull/3404/head
thyttan 2024-05-08 23:14:06 +02:00 committed by GitHub
parent bb57dfcd63
commit 720c897eab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@
let segment = Math.round((date.getMinutes()*60 + date.getSeconds() + 1)/300); let segment = Math.round((date.getMinutes()*60 + date.getSeconds() + 1)/300);
let hour = date.getHours() + Math.floor(segment/12); let hour = date.getHours() + Math.floor(segment/12);
// add "" to load into RAM due to 2v21 firmware .replace on flashstring issue // add "" to load into RAM due to 2v21 firmware .replace on flashstring issue
f_string = ""+fuzzy_string.minutes[segment % 12]; let f_string = ""+fuzzy_string.minutes[segment % 12];
if (f_string.includes('$1')) { if (f_string.includes('$1')) {
f_string = f_string.replace('$1', fuzzy_string.hours[(hour) % 12]); f_string = f_string.replace('$1', fuzzy_string.hours[(hour) % 12]);
} else { } else {