Acquires the I2C if the ``use_mutex`` parameter of the constructor was set to ``True``. Always acquires if system-wide mutex has been set.
(mutex_enabled=False)
| 19 | |
| 20 | |
| 21 | def _ifMutexAcquire(mutex_enabled=False): |
| 22 | """ |
| 23 | Acquires the I2C if the ``use_mutex`` parameter of the constructor was set to ``True``. |
| 24 | Always acquires if system-wide mutex has been set. |
| 25 | |
| 26 | """ |
| 27 | if mutex_enabled or mutex.overall_mutex()==True: |
| 28 | mutex.acquire() |
| 29 | |
| 30 | def _ifMutexRelease(mutex_enabled=False): |
| 31 | """ |
no outgoing calls
no test coverage detected