关闭轮询日志log

This commit is contained in:
meng 2024-03-24 21:02:02 +08:00
parent 76605d1d61
commit d973d1216d
3 changed files with 2 additions and 2 deletions

View File

@ -36,13 +36,13 @@ led_helper.blink_status_led(config.LED_BLINK_DURATION.initializing)
sys.taskInit(function() sys.taskInit(function()
local logging_tag = "main - 初始化网络" local logging_tag = "main - 初始化网络"
fskv.init() fskv.init()
wlan.init()
if fskv.kv_get("hostname") then if fskv.kv_get("hostname") then
wlan.hostname(fskv.kv_get("hostname")) wlan.hostname(fskv.kv_get("hostname"))
else else
local mac = wlan.getMac() local mac = wlan.getMac()
wlan.hostname("weiguo_" .. mac) wlan.hostname("weiguo_" .. mac)
end end
wlan.init()
if fskv.kv_get("wlan_ssid") then if fskv.kv_get("wlan_ssid") then
wlan.connect(fskv.kv_get("wlan_ssid"), fskv.kv_get("wlan_passwd")) wlan.connect(fskv.kv_get("wlan_ssid"), fskv.kv_get("wlan_passwd"))
return return
@ -112,7 +112,7 @@ local function loop_cs()
for index, value in ipairs(config.CS_GPIO) do for index, value in ipairs(config.CS_GPIO) do
gpio.setup(value, 0, gpio.PULLDOWN) gpio.setup(value, 0, gpio.PULLDOWN)
end end
log.info("轮巡设备", air780_helper.cs_index," GPIO",config.CS_GPIO[air780_helper.cs_index]) -- log.info("轮巡设备", air780_helper.cs_index," GPIO",config.CS_GPIO[air780_helper.cs_index])
gpio.set(config.CS_GPIO[air780_helper.cs_index], gpio.HIGH) gpio.set(config.CS_GPIO[air780_helper.cs_index], gpio.HIGH)
air780_helper.cs_index = air780_helper.cs_index + 1 air780_helper.cs_index = air780_helper.cs_index + 1
end end