refactor two more globals into Globals: channel_index and target_node

This commit is contained in:
Mike Kinney
2021-12-09 13:41:24 -08:00
parent 6b85611067
commit 96a5f316ea
4 changed files with 106 additions and 11 deletions

View File

@@ -38,9 +38,8 @@ class RemoteHardwareClient:
def _sendHardware(self, nodeid, r, wantResponse=False, onResponse=None):
if not nodeid:
# pylint: disable=W1401
raise Exception(
"You must set a destination node ID for this operation (use --dest \!xxxxxxxxx)")
r"You must set a destination node ID for this operation (use --dest \!xxxxxxxxx)")
return self.iface.sendData(r, nodeid, portnums_pb2.REMOTE_HARDWARE_APP,
wantAck=True, channelIndex=self.channelIndex, wantResponse=wantResponse, onResponse=onResponse)