Skip to content

Commit 3c7b731

Browse files
ES-Alexanderpatrickelectric
authored andcommitted
generate:device.py.in - UDP sendto -> send
Fixes bug that prevents UDP connections from working if initialised.
1 parent 8ba0438 commit 3c7b731

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

generate/templates/device.py.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class PingDevice(object):
125125
elif type(self.iodev).__name__ == 'Serial':
126126
return self.iodev.write(data)
127127
else: # Socket
128-
return self.iodev.sendto(data, self.server_address)
128+
return self.iodev.send(data)
129129

130130
##
131131
# @brief Make sure there is a device on and read some initial data

0 commit comments

Comments
 (0)