miclock2: Fix typo in redraw check

pull/1905/head
Erik Andresen 2022-06-01 17:39:48 +02:00
parent ac5c80ff38
commit 4f92dcc002
3 changed files with 3 additions and 2 deletions

View File

@ -1,2 +1,3 @@
0.01: New App! 0.01: New App!
0.02: Redraw only when seconds change 0.02: Redraw only when seconds change
0.03: Fix typo in redraw check

View File

@ -48,7 +48,7 @@ function setLineWidth(x1, y1, x2, y2, lw) {
function drawMixedClock(force) { function drawMixedClock(force) {
var date = new Date(); var date = new Date();
if ((force || Bangle.isLCDOn()) && buf.buffer && date.getSeconds() === lastDate.getSeconds()) { if ((force || Bangle.isLCDOn()) && buf.buffer && date.getSeconds() !== lastDate.getSeconds()) {
lastDate = date; lastDate = date;
var dateArray = date.toString().split(" "); var dateArray = date.toString().split(" ");
var isEn = locale.name.startsWith("en"); var isEn = locale.name.startsWith("en");

View File

@ -1,7 +1,7 @@
{ {
"id": "miclock2", "id": "miclock2",
"name": "Mixed Clock 2", "name": "Mixed Clock 2",
"version": "0.02", "version": "0.03",
"description": "White color variant of the Mixed Clock with thicker clock hands for better readability in the bright sunlight, extra space under the clock for widgets and seconds in the digital clock.", "description": "White color variant of the Mixed Clock with thicker clock hands for better readability in the bright sunlight, extra space under the clock for widgets and seconds in the digital clock.",
"icon": "clock-mixed.png", "icon": "clock-mixed.png",
"type": "clock", "type": "clock",