Skip to content

Commit

Permalink
Merge pull request #65 from destroyedlolo/DRMCairo
Browse files Browse the repository at this point in the history
Add timeout on WiFi repeater
  • Loading branch information
destroyedlolo authored Jun 11, 2023
2 parents d2d4347 + 9d1bd4b commit 1b4bd5e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions SeleniteDRMCairo/HDB/40_BottomBar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ local function f()
table.insert( additionnalevents, condition_freebox.getTimer() )
offx = offx + 24

local wdWiFi, _ = SelTimer.Create { when=20, clockid=SelTimer.ClockModeConst("CLOCK_MONOTONIC"), ifunc= function ()
Notification.setColor( COL_RED )
Notification.Log( "Répéteur WiFi muet")
Notification.setColor( COL_WHITE )
condition_WiFi.report_issue()
end
}
table.insert( additionnalevents, wdWiFi )
local WiFi = ImageFiltreSurface( self, offx,offy+24, SELENE_SCRIPT_DIR .. "/Images/WiFi.png" )
condition_WiFi = Condition(WiFi, .5, { autorecover=true, issue_color=COL_RED } )
table.insert( additionnalevents, condition_WiFi.getTimer() )
Expand Down

0 comments on commit 1b4bd5e

Please sign in to comment.