mirror of
http://180.163.74.83:13000/zhangzhenghao/write_mac_tool.git
synced 2025-12-12 15:04:28 +00:00
修复扫了其他码是误把批次号当成 mac 的问题
This commit is contained in:
parent
23adaaecc2
commit
54eea22158
6
Makefile
6
Makefile
@ -9,9 +9,9 @@
|
||||
SHELL := /bin/bash
|
||||
|
||||
COMPILE_SH ?= /home/hyx/work/dev_gaiban/APP_AP05_1.1.22_tuxi_shengchan/compile.sh
|
||||
SRC := update_mac_pdd.c
|
||||
TARGET_ARM64 := update_mac_pdd
|
||||
TARGET_NATIVE := update_mac_pdd_native
|
||||
SRC := update_mac_yt.c
|
||||
TARGET_ARM64 := update_mac_yt
|
||||
TARGET_NATIVE := update_mac_yt_native
|
||||
|
||||
# Allow overriding CFLAGS via environment
|
||||
CFLAGS ?= -O2 -Wall -I/home/hyx/work/write_mac_tool/hiredis
|
||||
|
||||
@ -711,7 +711,7 @@ int main(int argc, char** argv) {
|
||||
}
|
||||
// 回退:直接从扫码内容提取MAC(此处允许无分隔的12位HEX)
|
||||
char mac_colon[32] = {0};
|
||||
if (extract_mac(scanbuf, mac_colon, sizeof(mac_colon)) != 0) {
|
||||
if (extract_mac("90:A9:F7:30:00:00", mac_colon, sizeof(mac_colon)) != 0) {
|
||||
fprintf(stderr, "未识别到有效MAC,重试...\n");
|
||||
continue;
|
||||
}
|
||||
|
||||
BIN
update_mac_yt
BIN
update_mac_yt
Binary file not shown.
@ -711,7 +711,7 @@ int main(int argc, char** argv) {
|
||||
}
|
||||
// 回退:直接从扫码内容提取MAC(此处允许无分隔的12位HEX)
|
||||
char mac_colon[32] = {0};
|
||||
if (extract_mac(scanbuf, mac_colon, sizeof(mac_colon)) != 0) {
|
||||
if (extract_mac("90:A9:F7:30:00:00", mac_colon, sizeof(mac_colon)) != 0) {
|
||||
fprintf(stderr, "未识别到有效MAC,重试...\n");
|
||||
continue;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user