Obey buzz intensity

master
Salim Blume 2022-03-05 03:29:42 -06:00
parent 8a7b30cf6c
commit 96ad9b3e01
1 changed files with 2 additions and 2 deletions

View File

@ -100,9 +100,9 @@ layout.render();
function configureNotification(stat) { function configureNotification(stat) {
stat.on('notify', (e)=>{ 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 promise.then(function () {
return Bangle.buzz(buzzTime); return Bangle.buzz(buzzPattern[0], buzzPattern[1]);
}); });
}, Promise.resolve()); }, Promise.resolve());
console.log(`notify from ${JSON.stringify(e)}`); console.log(`notify from ${JSON.stringify(e)}`);