Skip to content

Commit

Permalink
Merge pull request #1864 from rigrig/clockface-clock=1
Browse files Browse the repository at this point in the history
ClockFace: set Bangle.CLOCK=1 before loading widgets
  • Loading branch information
gfwilliams committed May 23, 2022
2 parents a70f24c + 365b385 commit 5e4ad09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/ClockFace.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ ClockFace.prototype.tick = function() {
};

ClockFace.prototype.start = function() {
Bangle.CLOCK = 1;
Bangle.loadWidgets();
if (this.init) this.init.apply(this);
if (this._upDown) Bangle.setUI("clockupdown", d=>this._upDown.apply(this,[d]));
Expand Down

0 comments on commit 5e4ad09

Please sign in to comment.