关闭轮询日志log
This commit is contained in:
parent
76605d1d61
commit
d973d1216d
Binary file not shown.
Binary file not shown.
@ -36,13 +36,13 @@ led_helper.blink_status_led(config.LED_BLINK_DURATION.initializing)
|
||||
sys.taskInit(function()
|
||||
local logging_tag = "main - 初始化网络"
|
||||
fskv.init()
|
||||
wlan.init()
|
||||
if fskv.kv_get("hostname") then
|
||||
wlan.hostname(fskv.kv_get("hostname"))
|
||||
else
|
||||
local mac = wlan.getMac()
|
||||
wlan.hostname("weiguo_" .. mac)
|
||||
end
|
||||
wlan.init()
|
||||
if fskv.kv_get("wlan_ssid") then
|
||||
wlan.connect(fskv.kv_get("wlan_ssid"), fskv.kv_get("wlan_passwd"))
|
||||
return
|
||||
@ -112,7 +112,7 @@ local function loop_cs()
|
||||
for index, value in ipairs(config.CS_GPIO) do
|
||||
gpio.setup(value, 0, gpio.PULLDOWN)
|
||||
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)
|
||||
air780_helper.cs_index = air780_helper.cs_index + 1
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user