Make Session.getReportInterval work (#68)
* Update core.py libnorm.NormGetReportInterval.argtypes missed * Update session.py getReportInterval Need return the value * fix Unknown command FetchContent_MakeAvailable -- Building protokit from c51d4a771b0ccb073a78e1cf60f0deb7d652f382 CMake Error at CMakeLists.txt:63 (FetchContent_MakeAvailable): Unknown CMake command "FetchContent_MakeAvailable". https://github.com/EMsoft-org/EMsoft/issues/93pull/72/head
parent
a1bb33c354
commit
a08f387ec5
|
|
@ -1,4 +1,4 @@
|
||||||
cmake_minimum_required(VERSION 3.11)
|
cmake_minimum_required(VERSION 3.14)
|
||||||
cmake_policy(SET CMP0077 NEW)
|
cmake_policy(SET CMP0077 NEW)
|
||||||
# set the project name
|
# set the project name
|
||||||
project(norm VERSION 1.5.8)
|
project(norm VERSION 1.5.8)
|
||||||
|
|
|
||||||
|
|
@ -210,7 +210,7 @@ def get_libnorm():
|
||||||
libnorm.NormSetReportInterval.argtypes = [ctypes.c_void_p, ctypes.c_double]
|
libnorm.NormSetReportInterval.argtypes = [ctypes.c_void_p, ctypes.c_double]
|
||||||
|
|
||||||
libnorm.NormGetReportInterval.restype = ctypes.c_double
|
libnorm.NormGetReportInterval.restype = ctypes.c_double
|
||||||
libnorm.NormGetReportInterval.argtypes = []
|
libnorm.NormGetReportInterval.argtypes = [ctypes.c_void_p]
|
||||||
|
|
||||||
# Sender functions
|
# Sender functions
|
||||||
libnorm.NormStartSender.restype = ctypes.c_bool
|
libnorm.NormStartSender.restype = ctypes.c_bool
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@ class Session(object):
|
||||||
libnorm.NormSetLoopback(self, loop)
|
libnorm.NormSetLoopback(self, loop)
|
||||||
|
|
||||||
def getReportInterval(self):
|
def getReportInterval(self):
|
||||||
libnorm.NormGetReportInterval(self)
|
return libnorm.NormGetReportInterval(self)
|
||||||
|
|
||||||
def setReportInterval(self, interval):
|
def setReportInterval(self, interval):
|
||||||
libnorm.NormSetReportInterval(self, interval)
|
libnorm.NormSetReportInterval(self, interval)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue