We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f8912e0 + 42bef0f commit 487c6f8Copy full SHA for 487c6f8
pynetworktables2js/nt_serial.py
@@ -19,14 +19,13 @@ def __init__(self, update_callback):
19
formatted as strings.
20
"""
21
self.update_callback = update_callback
22
- self.nt = NetworkTables.getGlobalTable()
23
NetworkTables.addGlobalListener(self._nt_on_change, immediateNotify=True)
24
NetworkTables.addConnectionListener(self._nt_connected, immediateNotify=True)
25
26
def process_update(self, update):
27
"""Process an incoming update from a remote NetworkTables"""
28
data = json.loads(update)
29
- self.nt.putValue(data['k'], data['v'])
+ NetworkTables.putValue(data['k'], data['v'])
30
31
def _send_update(self, data):
32
"""Send a NetworkTables update via the stored send_update callback"""
0 commit comments