Skip to content
Snippets Groups Projects
Commit 25b10a16 authored by Paulus Kruger's avatar Paulus Kruger
Browse files

remove ord

parent 7881becf
Branches
Tags Working-RCU_ADC,ID
1 merge request!8Pypcc2
......@@ -34,7 +34,8 @@ def strs2bytes(var):
# print("str2bytes",var)
if len(var)==0: return var;
if isinstance(var[0],str): #make string a byte array
return [ord(c.encode('utf-8')[0]) for s in var for c in s]
# return [ord(c.encode('utf-8')[0]) for s in var for c in s]
return [c.encode('utf-8')[0] for s in var for c in s]
return var
def bytes2strs(var,step,dtype):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment