parent
3287106ed7
commit
c9e28caf10
|
|
@ -14,3 +14,4 @@
|
|||
0.15: Added option to always display the icon when charging (useful if 'hide if charge greater than' is enabled)
|
||||
0.16: Increase screen update rate when charging
|
||||
0.17: Add option 'Remove Jitter'='Drop only' to prevent percentage from getting up again when not charging
|
||||
Add option to disable vibration when charger connects
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@
|
|||
'hideifmorethan': 100,
|
||||
'alwaysoncharge': false,
|
||||
'removejitter': 0,
|
||||
'buzzoncharge': true,
|
||||
}
|
||||
// ...and overwrite them with any saved values
|
||||
// This way saved values are preserved if a new version adds more settings
|
||||
|
|
@ -78,6 +79,11 @@
|
|||
format: onOffFormat,
|
||||
onchange: save('alwaysoncharge'),
|
||||
},
|
||||
/*LANG*/'Buzz on charge': {
|
||||
value: s.buzzoncharge,
|
||||
format: onOffFormat,
|
||||
onchange: save('buzzoncharge'),
|
||||
},
|
||||
/*LANG*/'Remove Jitter': {
|
||||
value: s.removejitter,
|
||||
min: 0, max: 1,
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@
|
|||
'hideifmorethan': 100,
|
||||
'alwaysoncharge': false,
|
||||
'removejitter': 0, // 0 == off, 1 == downwards only
|
||||
'buzzoncharge': true,
|
||||
};
|
||||
Object.keys(DEFAULTS).forEach(k=>{
|
||||
if (settings[k]===undefined) settings[k]=DEFAULTS[k];
|
||||
|
|
@ -161,7 +162,9 @@
|
|||
}
|
||||
|
||||
Bangle.on('charging',function(charging) {
|
||||
if(charging) Bangle.buzz();
|
||||
if (setting('buzzoncharge')) {
|
||||
if(charging) Bangle.buzz();
|
||||
}
|
||||
update();
|
||||
g.flip();
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue