Skip to content

Commit

Permalink
oops wrong line concerning lsat commit
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Jun 18, 2022
1 parent 0466f41 commit 90eafc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/mesh_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def millis():
mesh.node_id = 4
print("starting nodeID", mesh.node_id)
if not mesh.begin():
if radio.is_chip_connected():
if radio.is_chip_connected:
try:
print("Could not connect to network.\nConnecting to mesh...")
while mesh.renew_address() == MESH_DEFAULT_ADDRESS:
Expand All @@ -46,7 +46,7 @@ def millis():

if not mesh.write(struct.pack("L", TIMER), ord("M")):
# If a write fails, check connectivity to the mesh network
if not mesh.check_connection:
if not mesh.check_connection():
# The address could be refreshed per a specified time frame
# or only when sequential writes fail, etc.
print("Send fail. Renewing Address...")
Expand Down

0 comments on commit 90eafc1

Please sign in to comment.