diff --git a/apps/run/app.js b/apps/run/app.js index 2f4c44f17..cb9beac5f 100644 --- a/apps/run/app.js +++ b/apps/run/app.js @@ -100,9 +100,9 @@ layout.render(); function configureNotification(stat) { stat.on('notify', (e)=>{ - settings.notify[stat.id].notifications.reduce(function (promise, buzzTime) { + settings.notify[stat.id].notifications.reduce(function (promise, buzzPattern) { return promise.then(function () { - return Bangle.buzz(buzzTime); + return Bangle.buzz(buzzPattern[0], buzzPattern[1]); }); }, Promise.resolve()); console.log(`notify from ${JSON.stringify(e)}`);