Merge pull request #1985 from rigrig/clockface-fixes

Clockface fixes
master
Gordon Williams 2022-06-27 11:04:58 +01:00 committed by GitHub
commit b1f85e6ec5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ function ClockFace(options) {
options.update.apply(this, [t, {d: true, h: true, m: true, s: true}]);
});
this.update = options.update || (t => {
g.clear();
g.clearRect(Bangle.appRect);
options.draw.apply(this, [t, {d: true, h: true, m: true, s: true}]);
});
if (options.precision===1000||options.precision===60000) throw "ClockFace precision is in seconds, not ms";
@ -108,7 +108,7 @@ ClockFace.prototype.resume = function() {
delete this._last;
this.paused = false;
if (this._resume) this._resume.apply(this);
this.tick(true);
this.tick();
};
/**