mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-08-03 10:28:41 +00:00
Amended Globals.mc
Moved wifiPollDelayMs to Globals class.
This commit is contained in:
@ -21,28 +21,32 @@ using Toybox.Lang;
|
||||
class Globals {
|
||||
//! Alert is a toast at the top of the watch screen, it stays present until tapped
|
||||
//! or this timeout has expired.
|
||||
static const scAlertTimeout = 2000; // ms
|
||||
static const scAlertTimeoutMs = 2000; // ms
|
||||
|
||||
//! Time to let the existing HTTP responses get serviced after a
|
||||
//! `Communications.NETWORK_RESPONSE_OUT_OF_MEMORY` response code.
|
||||
static const scApiBackoff = 2000; // ms
|
||||
static const scApiBackoffMs = 2000; // ms
|
||||
|
||||
//! Needs to be long enough to enable a "double ESC" to quit the application from
|
||||
//! an ErrorView.
|
||||
static const scApiResume = 200; // ms
|
||||
static const scApiResumeMs = 200; // ms
|
||||
|
||||
//! Warn the user after fetching the menu if their watch is low on memory before the device crashes.
|
||||
static const scLowMem = 0.90; // percent as a fraction.
|
||||
static const scLowMem = 0.90; // percent as a fraction.
|
||||
|
||||
//! Constant for PIN confirmation dialog.<br>
|
||||
//! Maximum number of failed PIN confirmation attempts allowed in `scPinMaxFailureMinutes`.
|
||||
static const scPinMaxFailures = 5;
|
||||
static const scPinMaxFailures = 5;
|
||||
|
||||
//! Constant for PIN confirmation dialog.<br>
|
||||
//! Period in minutes during which no more than `scPinMaxFailures` PIN attempts are tolerated.
|
||||
static const scPinMaxFailureMinutes = 2;
|
||||
static const scPinMaxFailureMinutes = 2;
|
||||
|
||||
//! Constant for PIN confirmation dialog.<br>
|
||||
//! Lock out time in minutes after a failed PIN entry.
|
||||
static const scPinLockTimeMinutes = 10;
|
||||
static const scPinLockTimeMinutes = 10;
|
||||
|
||||
//! After running a task by Wi-Fi/LTE synchronisation the periodic updates need to resume. This
|
||||
//! is the delay between synchronisation completion and resumption of updates.
|
||||
static const wifiPollResumeDelayMs = 2000; // ms
|
||||
}
|
||||
|
Reference in New Issue
Block a user