From 337b970b93059a81785b17ea8f6d88a6c07d0e1b Mon Sep 17 00:00:00 2001 From: ranchuan Date: Tue, 15 Aug 2023 18:21:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=B3=A8=E7=A0=81=E6=88=90?= =?UTF-8?q?=E5=8A=9F=E8=BF=94=E5=9B=9E0xc0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python/checker_test.py | 1 + python/code_with_checker.py | 15 +++++++++++---- source/ReadMe.txt | 4 +++- source/main/compiler_info.h | 2 +- source/main/main.c | 2 +- source/task/tran_for_coder2.c | 2 +- 6 files changed, 18 insertions(+), 8 deletions(-) diff --git a/python/checker_test.py b/python/checker_test.py index de9927e..aab2a35 100644 --- a/python/checker_test.py +++ b/python/checker_test.py @@ -4,6 +4,7 @@ import threading import time import socket import checker_save +import sys diff --git a/python/code_with_checker.py b/python/code_with_checker.py index f60737b..0367abd 100644 --- a/python/code_with_checker.py +++ b/python/code_with_checker.py @@ -3,7 +3,8 @@ import serial.tools.list_ports import threading import time import socket -import checker_save +import sys +# import checker_save @@ -181,7 +182,7 @@ class port: def checker_test(self,times:int,scheme:str,script:str): print("批检仪测试:") tick=0 - save=checker_save.save(scheme,script) + # save=checker_save.save(scheme,script) data=bytearray() while(tickack[(addr)*39]; w->ack_num++; d[0]=addr+slave_addr_off(); - d[1]=(ack==0xff)?0xff:(ack+0xc0); + d[1]=((ack==0xff)||(ack==0x00))?ack:(ack+0xc0); memcpy(&d[2],w->item[addr].shell_code,13); memcpy(&d[2+13],w->item[addr].uid_code,16); memcpy(&d[2+13+16],w->item[addr].password,8);