revert temp
This commit is contained in:
+8
-3
@@ -3,6 +3,8 @@ from osc4py3 import oscbuildparse
|
||||
from threading import Lock
|
||||
|
||||
mutex = Lock()
|
||||
temp_mutex = Lock()
|
||||
|
||||
|
||||
def start_osc():
|
||||
osc_startup()
|
||||
@@ -38,9 +40,12 @@ class OscBroadcaster:
|
||||
update()
|
||||
|
||||
def temperature(self, temp: float, channel: str):
|
||||
msg = oscbuildparse.OSCMessage(channel, None, [temp])
|
||||
osc_send(msg, self.name)
|
||||
update()
|
||||
global temp_mutex
|
||||
with temp_mutex:
|
||||
msg = oscbuildparse.OSCMessage(channel, None, [temp])
|
||||
osc_send(msg, self.name)
|
||||
osc_process()
|
||||
|
||||
|
||||
class OscReceiver:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user