heartbeat = Timer.Alarm(blink_led, s=5, arg=(0x005500, 0.1, True), periodic=True)
# Try to update RTC module with accurate UTC datetime if GPS is enabled and has not yet synchronized
if (
False
): # gps_on and update_time_later: #TODO: gps bugs, but rememebr shared serial so check logger file!
# Start a new thread to update time from gps if available
# https://docs.pycom.io/firmwareapi/micropython/_thread/
status_logger.info("Starting GPS thread...")
_thread.start_new_thread(GpsSIM28.SetRTCtime, (rtc, config, status_logger))
status_logger.info("Initialisation finished")
temp = (temperature() - 32) / 1.8
status_logger.info("Memory: " + str(pycom.get_free_heap()) + " Temp: " + str(temp))
# TODO: delete init object?
# trunk-ignore(flake8/F841)
except Exception as e:
status_logger.exception("Exception in the main")
led_lock.acquire()
delete init object?
trunk-ignore(flake8/F841)
https://github.com/pyonair/PyonAir-pycom/blob/9b8cd7f8cb06d958981c1841ca740c9ae1cf723d/code/main.py#L318
c0220badc0bf9ab6b406a762fd065868850dfa50