mirror of https://github.com/espruino/BangleApps
settings 0.41: Stop users disabling all wake-up methods and locking themselves out (fix #1272)
parent
ad92c1afd9
commit
5ea2cf8b56
|
@ -169,7 +169,7 @@
|
|||
{
|
||||
"id": "setting",
|
||||
"name": "Settings",
|
||||
"version": "0.40",
|
||||
"version": "0.41",
|
||||
"description": "A menu for setting up Bangle.js",
|
||||
"icon": "settings.png",
|
||||
"tags": "tool,system",
|
||||
|
|
|
@ -43,3 +43,4 @@
|
|||
0.38: Restructed menus as per forum discussion
|
||||
0.39: Fix misbehaving debug info option
|
||||
0.40: Moved off into Utils, put System after Apps
|
||||
0.41: Stop users disabling all wake-up methods and locking themselves out (fix #1272)
|
||||
|
|
|
@ -31,9 +31,12 @@ This is Bangle.js's settings menu
|
|||
* **LCD Brightness** set how bright the LCD is. Due to hardware limitations in the LCD backlight, you may notice flicker if the LCD is not at 100% brightness.
|
||||
* **LCD Timeout** how long should the LCD stay on for if no activity is detected. 0=stay on forever
|
||||
* **Wake on X** should the given activity wake up the Bangle.js LCD?
|
||||
* On Bangle.js 2 when locked the touchscreen is turned off to save power. Because of this,
|
||||
`Wake on Touch` actually uses the accelerometer, and you need to actually tap the display to wake Bangle.js.
|
||||
* **Twist X** these options adjust the sensitivity of `Wake on Twist` to ensure Bangle.js wakes up with just the right amount of wrist movement.
|
||||
|
||||
|
||||
|
||||
## Quiet Mode
|
||||
|
||||
Quiet Mode is a hint to apps and widgets that you do not want to be disturbed.
|
||||
|
|
|
@ -11,8 +11,18 @@ function updateSettings() {
|
|||
}
|
||||
|
||||
function updateOptions() {
|
||||
var o = settings.options;
|
||||
// Check to make sure nobody disabled all wakeups and locked themselves out!
|
||||
if (BANGLEJS2) {
|
||||
if (!(o.wakeOnBTN1||o.wakeOnFaceUp||o.wakeOnTouch||o.wakeOnTwist)) {
|
||||
o.wakeOnBTN1 = true;
|
||||
}
|
||||
} else {
|
||||
if (!(o.wakeOnBTN1||o.wakeOnBTN2||o.wakeOnBTN3||o.wakeOnFaceUp||o.wakeOnTouch||o.wakeOnTwist))
|
||||
o.wakeOnBTN2 = true;
|
||||
}
|
||||
updateSettings();
|
||||
Bangle.setOptions(settings.options)
|
||||
Bangle.setOptions(o)
|
||||
}
|
||||
|
||||
function gToInternal(g) {
|
||||
|
|
Loading…
Reference in New Issue