From d4897bd9954d40ba94536ed53e4605a1ee897493 Mon Sep 17 00:00:00 2001 From: Milan Ventil Toman Date: Tue, 9 Mar 2021 21:01:11 +0100 Subject: [PATCH] reset if cannot write to influx? --- main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 1a4109a..661a2b8 100644 --- a/main.py +++ b/main.py @@ -3,7 +3,6 @@ import davis_decode import utime import WiFi import machine -import micropython gc.collect() DEBUG = True @@ -93,8 +92,8 @@ while True: print(b"DATA SEND: {}".format(data_sent.status_code)) else: print(b"DATA SEND FAIL: {}".format(data_sent)) - if data_sent[0] == -2: - machine.reset() + #if data_sent[0] == -2: + machine.reset() interpacket_time = 0 else: interpacket_time += 1