# HG changeset patch # User jfp <jf.pieronne@laposte.net> # Date 1719396014 -7200 # Wed Jun 26 12:00:14 2024 +0200 # Node ID fccd9853e04849f622b2754f4850513fce8768c2 # Parent 601acd250e2a42bbd8246c1bb7cf579776ba89db Result is bytes, not Array[c_char] diff --git a/python/local/ovms_module/ovms/rtl/lib/FindFile.py b/python/local/ovms_module/ovms/rtl/lib/FindFile.py --- a/python/local/ovms_module/ovms/rtl/lib/FindFile.py +++ b/python/local/ovms_module/ovms/rtl/lib/FindFile.py @@ -69,7 +69,7 @@ self.nullArg, ctypes.byref(self.resultant_length), ) - res = self.new_filespec[: self.resultant_length.value] + res = bytes(self.new_filespec[: self.resultant_length.value]) # Check if the device is file oriented, lib$find_file return a file if # a device like NLA0: is used if (