From: Caisking <3449750381@qq.com> Date: Fri, 20 Dec 2024 06:53:49 +0000 (+0800) Subject: 修复错误的解析项 X-Git-Tag: v1.3.113-repair_tp~129 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=d8bb025a0460b883402d644f5adc98cf78181b16;p=mirrors%2FFD230.git 修复错误的解析项 --- diff --git a/tools/log_parser/runtimeanalysis.py b/tools/log_parser/runtimeanalysis.py index 57dc02cca..d16eed7ee 100644 --- a/tools/log_parser/runtimeanalysis.py +++ b/tools/log_parser/runtimeanalysis.py @@ -21,7 +21,7 @@ output_file_path = os.path.join(output_dir, "runtimeout.txt") # 从命令行参数中获取输入文件名称,如果没有提供则使用默认文件 txtname = sys.argv[-1] -# 字符串与其对应的消息的映射 +# 字符串与其对应的消息的映射 字母要小写 str_bin_list = [ ['0001', "开机 "], ['0002', "关机 "], @@ -64,9 +64,9 @@ str_bin_list = [ ['0702',"主动检测血氧结束"], ['0901',"抬腕亮屏"], ['0902',"翻腕灭屏"], - ['0B01',"电量增加"], - ['0B02',"电量减少"], - ['0C01',"马达震动"], + ['0b01',"电量增加"], + ['0b02',"电量减少"], + ['0c01',"马达震动"], ['1201',"消息弹窗显示"] ]