Amended Globals.mc

Moved wifiPollDelayMs to Globals class.
This commit is contained in:
Philip Abbey
2025-07-25 08:38:55 +01:00
parent 0d73de494e
commit d110826392
5 changed files with 18 additions and 16 deletions

View File

@ -137,7 +137,7 @@ class ErrorView extends ScalableView {
// The call to 'updateMenuItems()' must be on another thread so that the view is popped above.
var myTimer = new Timer.Timer();
// Now this feels very "closely coupled" to the application, but it is the most reliable method instead of using a timer.
myTimer.start(getApp().method(:updateMenuItems), Globals.scApiResume, false);
myTimer.start(getApp().method(:updateMenuItems), Globals.scApiResumeMs, false);
// This must be last to avoid a race condition with show(), where the
// ErrorView can't be dismissed.
mShown = false;