Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
psy0rz committed Aug 2, 2020
1 parent 39a7d8e commit f595b8a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions micropython/meowton.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,14 @@ def cam_send(state):
if state!=last_state:
try:
# print("Setting cam to "+state)
s=usocket.socket()config.status_ip, 1234)[0][-1]
s=usocket.socket()
sockaddr = usocket.getaddrinfo(config.status_ip, 1234)[0][-1]
s.connect(sockaddr)
s.send(state+"\n")
s.close()
# print("Cam send done")
except Exception as e:
# print("failed: "+str(e))
print("cam send failed: "+str(e))
pass
last_state=state

Expand Down

0 comments on commit f595b8a

Please sign in to comment.