« first day (1990 days earlier)      last day (1366 days later) » 

8:12 AM
output = ""

def hwid_test(self):
global output
output = ""
try:
hwid_command = b"!!shell sudo wf_test g_sig 61 \r"
self.ser.write(hwid_command)
output = self.ser.read(1000).decode('UTF-8', 'ignore')
print(output)
# write(output)
hwid_regex = re.findall(r'\d\w\d', output)
print(hwid_regex)
if "sig[61] = 0x7" in output:
return "PASS"
else:
return "FAIL"
except Exception as e:
print("type error: " + str(e))
 
1 message moved from Python
 
8:53 AM
output = "" #buffer

def hwid_test():
global output
output = ""

try:
output = "blabla"
print(output)
if "sig[61] = 0x7" in output:
return "PASS"
else:
return "FAIL"
except Exception as e:
print("type error: " + str(e))
 
 
2 hours later…
10:34 AM
1 message moved from Python
 

« first day (1990 days earlier)      last day (1366 days later) »