diff --git a/apps/lcars/lcars.app.js b/apps/lcars/lcars.app.js index 9af585ff7..6ffc78ca7 100644 --- a/apps/lcars/lcars.app.js +++ b/apps/lcars/lcars.app.js @@ -596,7 +596,7 @@ function increaseAlarm(){ // Set to zero if alarm was disabled before if(!isAlarmEnabled()){ - WIDGETS["widtmr"].setTime(0); + WIDGETS["widtmr"].setTimer(0); } WIDGETS["widtmr"].increaseTimer(5); diff --git a/apps/notanalog/notanalog.app.js b/apps/notanalog/notanalog.app.js index 91381fe71..5e56d6f6a 100644 --- a/apps/notanalog/notanalog.app.js +++ b/apps/notanalog/notanalog.app.js @@ -425,7 +425,7 @@ function increaseAlarm(){ // Set to zero if alarm was disabled before if(!isAlarmEnabled()){ - WIDGETS["widtmr"].setTime(0); + WIDGETS["widtmr"].setTimer(0); } WIDGETS["widtmr"].increaseTimer(5); diff --git a/apps/widtmr/README.md b/apps/widtmr/README.md index 2ffbfc8cf..ae8b0945e 100644 --- a/apps/widtmr/README.md +++ b/apps/widtmr/README.md @@ -21,7 +21,7 @@ into your own app. The following functions are available: - isStarted() -> boolean - setStarted(boolean) -> void -- setTime(t) -> void +- setTimer(t) -> void - increaseTimer(int) -> void - decreaseTimer(int) -> void - getRemainingMinutes() -> int @@ -37,7 +37,7 @@ Bangle.on('touch', function(btn, e){ // Set to zero if alarm was disabled before. Otherwise // it starts from the last setting made by the user. if(!isAlarmEnabled()){ - WIDGETS["widtmr"].setTime(0); + WIDGETS["widtmr"].setTimer(0); } WIDGETS["widtmr"].increaseTimer(5); diff --git a/apps/widtmr/widget.js b/apps/widtmr/widget.js index c9ef4ffdb..30eb950cf 100644 --- a/apps/widtmr/widget.js +++ b/apps/widtmr/widget.js @@ -121,7 +121,7 @@ } updateSettings(); - }, setTime: function(t){ + }, setTimer: function(t){ settings.minutes = Math.max(0, t); settings.started = t > 0; updateSettings();