Loading elphel.py +2 −2 Original line number Original line Diff line number Diff line Loading @@ -15,7 +15,7 @@ class phys_mem: allocated it should remain working allocated it should remain working ''' ''' def __init__(self, buf_size = 4096): def __init__(self, buf_size = 4096): ctypes_alloc = ctypes.CDLL('libelphel.so').malloc_and_mlock ctypes_alloc = ctypes.CDLL('libelphel.so.0').malloc_and_mlock ctypes_alloc.restype = ctypes.c_void_p ctypes_alloc.restype = ctypes.c_void_p ctypes_alloc.argtypes = ctypes.c_size_t, ctypes_alloc.argtypes = ctypes.c_size_t, self.endian="<" # little, ">" for big self.endian="<" # little, ">" for big Loading Loading
elphel.py +2 −2 Original line number Original line Diff line number Diff line Loading @@ -15,7 +15,7 @@ class phys_mem: allocated it should remain working allocated it should remain working ''' ''' def __init__(self, buf_size = 4096): def __init__(self, buf_size = 4096): ctypes_alloc = ctypes.CDLL('libelphel.so').malloc_and_mlock ctypes_alloc = ctypes.CDLL('libelphel.so.0').malloc_and_mlock ctypes_alloc.restype = ctypes.c_void_p ctypes_alloc.restype = ctypes.c_void_p ctypes_alloc.argtypes = ctypes.c_size_t, ctypes_alloc.argtypes = ctypes.c_size_t, self.endian="<" # little, ">" for big self.endian="<" # little, ">" for big Loading