添加 config.NOTIFY_APPEND_MORE_INFO

This commit is contained in:
Mizore 2023-02-09 20:25:24 +08:00
parent 0a3a41a1ad
commit 8992925892
2 changed files with 4 additions and 3 deletions

View File

@ -43,6 +43,9 @@ return {
-- 开机通知 (会消耗流量)
BOOT_NOTIFY = true,
--
-- 通知内容追加更多信息 (通知内容增加会导致流量消耗增加)
NOTIFY_APPEND_MORE_INFO = true,
--
-- 开启低功耗模式, USB 断开连接无法查看日志, RNDIS 网卡会断开
LOW_POWER_MODE = false,
}

View File

@ -1,7 +1,5 @@
local util_notify = {}
-- 在通知内容加入设备信息
local is_append_more_info = true
-- 消息队列
local msg_queue = {}
@ -263,7 +261,7 @@ function util_notify.send(msg)
return true
end
if is_append_more_info then
if config.NOTIFY_APPEND_MORE_INFO then
msg = msg .. append()
end