diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_UI.be b/lib/libesp32/berry_matter/src/embedded/Matter_UI.be index 30ebed661..6944b8c35 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_UI.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_UI.be @@ -70,7 +70,7 @@ class Matter_UI webserver.content_send(string.format("

") - + webserver.content_send("

") return matter_enabled @@ -135,14 +135,16 @@ class Matter_UI if seconds_left < 0 seconds_left = 0 end var min_left = (seconds_left + 30) / 60 - webserver.content_send(string.format("
 [ Commissioning open for %i min ] 

", min_left)) + webserver.content_send(string.format("
 Commissioning open for %i min 

", min_left)) var pairing_code = self.device.compute_manual_pairing_code() webserver.content_send(string.format("

Manual pairing code:
%s-%s-%s


", pairing_code[0..3], pairing_code[4..6], pairing_code[7..])) - + + webserver.content_send(string.format("
")) var qr_text = self.device.compute_qrcode_content() self.show_qrcode(qr_text) webserver.content_send(string.format("

%s

", qr_text)) + webserver.content_send(string.format("
")) webserver.content_send("

") @@ -197,13 +199,13 @@ class Matter_UI webserver.content_send("
") webserver.content_send(string.format("", f.get_fabric_index())) webserver.content_send("

") - + webserver.content_send("

") end end webserver.content_send("

") - + end ####################################################################### @@ -212,7 +214,7 @@ class Matter_UI def page_part_mgr() import webserver import string - + if !webserver.check_privileged_access() return nil end webserver.content_start("Matter") #- title of the web page -# @@ -236,13 +238,13 @@ class Matter_UI import string import partition_core import persist - + #- check that the partition is valid -# var p = partition_core.Partition() try - + #---------------------------------------------------------------------# # Change Passcode and/or Passcode #---------------------------------------------------------------------# @@ -314,7 +316,7 @@ class Matter_UI # mtc0 = close, mtc1 = open commissioning var fabrics_count = self.device.sessions.count_active_fabrics() if fabrics_count == 0 - webserver.content_send(string.format("
%s
", "No active associaition")) + webserver.content_send(string.format("
%s
", "No active association")) else var plural = fabrics_count > 1 webserver.content_send(string.format("
%s
", str(fabrics_count) + " active association" + (plural ? "s" : "")))