Skip to content

Commit

Permalink
Lastboot causes IndexError
Browse files Browse the repository at this point in the history
  • Loading branch information
adlerweb authored Dec 4, 2018
1 parent fa46752 commit 320b855
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/mqtt-proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ async def procCANRx(queue, mqttTxQueue):
asyncio.ensure_future(mqttTxQueue.put(["/" + "{0:0{1}x}".format(pkg['meta']['target'],4) + "/get/level", str(pkg['data'][1]), True]))

if pkg['len'] == 1 and (pkg['data'][0] == 0x21): #Boot
asyncio.ensure_future(mqttTxQueue.put(["/" + "{0:0{1}x}".format(pkg['meta']['source'],4) + "/lastboot", time.time()]))
asyncio.ensure_future(mqttTxQueue.put(["/" + "{0:0{1}x}".format(pkg['meta']['source'],4) + "/lastboot", time.time(), False]))

queue.task_done()

Expand Down

0 comments on commit 320b855

Please sign in to comment.