1
0
Fork 0

Sliding Clock: get rid of the setup variables after the init to reduce the memory footprint

master
Adrian Kirk 2022-10-08 20:21:35 +01:00
parent c09dd1af5a
commit b9a7e76beb
No known key found for this signature in database
GPG Key ID: 5A448EB0FC623526
2 changed files with 8 additions and 8 deletions

View File

@ -314,7 +314,6 @@ function initDisplay(settings) {
row_displays.push(create_row(row_type,j)); row_displays.push(create_row(row_type,j));
} }
}); });
initComplete();
} }
function mergeMaps(map1,map2){ function mergeMaps(map1,map2){
@ -733,6 +732,7 @@ function loadSettings() {
initDisplay(); initDisplay();
updateColorScheme(); updateColorScheme();
} }
initComplete();
} }
function button3pressed() { function button3pressed() {

View File

@ -18,6 +18,12 @@ class EnglishDateFormatter extends DateFormatter {
return [hours_txt,mins_txt[0],mins_txt[1],day_of_week,date_txt,month]; return [hours_txt,mins_txt[0],mins_txt[1],day_of_week,date_txt,month];
} }
defaultRowTypes() { defaultRowTypes() {
return {
small: {size: 'ssmall'}
};
}
defaultRowDefs(){
return [ return [
{ {
type: 'large', type: 'large',
@ -39,12 +45,6 @@ class EnglishDateFormatter extends DateFormatter {
} }
]; ];
} }
defaultRowDefs(){
return {
small: {size: 'ssmall'}
};
}
} }
module.exports = EnglishDateFormatter; module.exports = EnglishDateFormatter;