MCPcopy Create free account
hub / github.com/DexterInd/GoPiGo3 / _ifMutexRelease

Function _ifMutexRelease

Software/Python/easysensors.py:30–35  ·  view source on GitHub ↗

Releases the I2C if the ``use_mutex`` parameter of the constructor was set to ``True``.

(mutex_enabled=False)

Source from the content-addressed store, hash-verified

28 mutex.acquire()
29
30def _ifMutexRelease(mutex_enabled=False):
31 """
32 Releases the I2C if the ``use_mutex`` parameter of the constructor was set to ``True``.
33 """
34 if mutex_enabled or mutex.overall_mutex()==True:
35 mutex.release()
36
37def debug(in_str):
38 if False:

Callers 4

readMethod · 0.85
read_temperatureMethod · 0.85
read_humidityMethod · 0.85
readMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected