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/93
pull/72/head
Honglei 2022-07-19 04:54:09 +08:00 committed by GitHub
parent a1bb33c354
commit a08f387ec5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.11)
cmake_minimum_required(VERSION 3.14)
cmake_policy(SET CMP0077 NEW)
# set the project name
project(norm VERSION 1.5.8)

View File

@ -210,7 +210,7 @@ def get_libnorm():
libnorm.NormSetReportInterval.argtypes = [ctypes.c_void_p, ctypes.c_double]
libnorm.NormGetReportInterval.restype = ctypes.c_double
libnorm.NormGetReportInterval.argtypes = []
libnorm.NormGetReportInterval.argtypes = [ctypes.c_void_p]
# Sender functions
libnorm.NormStartSender.restype = ctypes.c_bool

View File

@ -64,7 +64,7 @@ class Session(object):
libnorm.NormSetLoopback(self, loop)
def getReportInterval(self):
libnorm.NormGetReportInterval(self)
return libnorm.NormGetReportInterval(self)
def setReportInterval(self, interval):
libnorm.NormSetReportInterval(self, interval)