Releases the I2C if the ``use_mutex`` parameter of the constructor was set to ``True``.
(mutex_enabled=False)
| 28 | mutex.acquire() |
| 29 | |
| 30 | def _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 | |
| 37 | def debug(in_str): |
| 38 | if False: |
no outgoing calls
no test coverage detected