Commit cb49a1d 1 parent 1935f2f commit cb49a1d Copy full SHA for cb49a1d
File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 19
19
from I2C_mutex import Mutex
20
20
21
21
mutex = Mutex ()
22
- overall_mutex = mutex .overall_mutex ()
23
22
24
23
def _ifMutexAcquire (mutex_enabled = False ):
25
24
"""
26
25
Acquires the I2C if the ``use_mutex`` parameter of the constructor was set to ``True``.
27
26
Always acquires if system-wide mutex has been set.
28
27
29
28
"""
30
- if mutex_enabled or overall_mutex == True :
29
+ if mutex_enabled or mutex . overall_mutex () == True :
31
30
mutex .acquire ()
32
31
33
32
def _ifMutexRelease (mutex_enabled = False ):
34
33
"""
35
34
Releases the I2C if the ``use_mutex`` parameter of the constructor was set to ``True``.
36
35
"""
37
- if mutex_enabled or overall_mutex == True :
36
+ if mutex_enabled or mutex . overall_mutex () == True :
38
37
mutex .release ()
39
38
40
39
try :
You can’t perform that action at this time.
0 commit comments