Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mzakharo committed Jan 2, 2024
1 parent a50bcff commit 6acd0a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ports/esp32/calibrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
import modules.config as config
import modules.secrets as secrets

SLEEP = int(sys.argv[1])

if len(sys.argv) == 2:
if len(sys.argv) == 2:
SLEEP = int(sys.argv[1])
print('publishing sleep', SLEEP)
publish.single(f'{config.NAME}/sleep', str(SLEEP), qos=1, retain=True, hostname=secrets.MQTT_SERVER)
else:
Expand Down

0 comments on commit 6acd0a7

Please sign in to comment.