Leds panel fixed port (#23007)

* Berry Leds_panel minor fix

* Fix
This commit is contained in:
s-hadinger 2025-02-14 18:41:05 +01:00 committed by GitHub
parent a2af12c969
commit 64ec55db4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -706,7 +706,7 @@ class leds_panel
var h, w, cell_size, cell_space
static var SAMPLING = 100
static var PORT = 8887 # default port 8886
static var PORT = 8886 # default port 8886
static var HTML_HEAD1 =
"<!DOCTYPE HTML><html><head>"
static var HTML_URL_F =
@ -812,7 +812,7 @@ class leds_panel
log("LED: no leds configured, can't start leds_panel", 3)
return
end
if (port == nil) port = 8886 end
if (port == nil) port = self.PORT end
self.port = port
self.web = global.webserver_async(port)
self.sampling_interval = self.SAMPLING