fixing build for ARM64 (no bswap)

This commit is contained in:
MX682X
2024-11-23 23:18:56 +01:00
parent 3b364545c8
commit fbffbf7a1a
3 changed files with 21 additions and 17 deletions

View File

@@ -303,8 +303,8 @@ def convert_xml(xml_path, c_funcs):
func_bytes = bytes(scr_bytes_buffer[:counter]) # create an immutable bytes array
break
if func_bytes == None:
continue # continue with next chip if somethin went wrong
if func_bytes == None or len(func_bytes) == 0:
continue # continue with next chip if somethin went wrong or is empty (SetSpeed_dw)
if function_name not in function_dict[programming_mode].keys():
function_dict[programming_mode][function_name] = []