RuntimeError while trying to log several times in a row
I want to connect to the device only once and then run a few test and log data without reconnecting each time.
I'm connecting successfully to the device at first, then creating a signal and using libmetawear.mbl_mw_datasignal_log to create logger,then I log data and finally using libmetawear.mbl_mw_logger_remove to remove the logger.
This works fine in the first or second time and beyond that I get the below error.
result = RuntimeError("Could not create " + (resource if 'resource' in kwarg else "resource") ) if pointer == None else pointer
NameError: name 'kwarg' is not defined
Am i missing something regrading the clean-up after logging session?