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));
}
});
initComplete();
}
function mergeMaps(map1,map2){
@ -733,6 +732,7 @@ function loadSettings() {
initDisplay();
updateColorScheme();
}
initComplete();
}
function button3pressed() {

View File

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