添加升级文件签名
diff --git a/.sign_salt b/.sign_salt
new file mode 100644
index 0000000..47e24b0
--- /dev/null
+++ b/.sign_salt
@@ -0,0 +1 @@
+nzoqPYMIu91VViA/mEIG5FtJXi8=
\ No newline at end of file
diff --git a/Makefile b/Makefile
index ea4310f..a2b9653 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,11 @@
-TARGET=g40130x
+TARGET=g401201
UV4=/C/Keil/UV4/Uv4.exe
+SALT_KEY=.sign_salt
+
+SIGN_201=./g401302/outFlow/G401302_flow.bin
+SIGN201_FILE=./g401302/outFlow/G401302.sign
+
.PHONY: clean all
timer: clean
@@ -11,6 +16,10 @@
@echo "build shu version ..."
$(UV4) -cr -j0 -b g401302/project/g401302.uvproj -t"flow" -o"outFlow/OUTPUTFILE.TXT"
+sign:
+ @echo "calc upgrade file sign ..."
+ cat $(SIGN_201) $(SALT_KEY) | sha256sum - | cut -d' ' -f 1 | tr -d '\n' > $(SIGN201_FILE)
+
all: timer flow
clean:
diff --git a/supwisdom/sp_consume.c b/supwisdom/sp_consume.c
index c418368..75efacb 100644
--- a/supwisdom/sp_consume.c
+++ b/supwisdom/sp_consume.c
@@ -480,7 +480,6 @@
if(MEMCMP(pos->cardState.snr, card->cardphyid, 4) != 0)
{
cardWorkState->current_state = CARDWORKSTATUS_NONE;
- break;
}
break;
case CARDWORKSTATUS_ERROR: