diff --git a/Makefile b/Makefile index dd5661a..3063a46 100644 --- a/Makefile +++ b/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 diff --git a/update_mac_pdd.c b/update_mac_pdd.c index cc64132..d40bad3 100644 --- a/update_mac_pdd.c +++ b/update_mac_pdd.c @@ -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; } diff --git a/update_mac_yt b/update_mac_yt index 322a5b4..3ddbd61 100755 Binary files a/update_mac_yt and b/update_mac_yt differ diff --git a/update_mac_yt.c b/update_mac_yt.c index 523fe39..5b6c36b 100644 --- a/update_mac_yt.c +++ b/update_mac_yt.c @@ -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; }