RoelKroes / TBTracker

RTTY and LoRa High Altitude Balloon Tracker for Arduino and SX127x
29 stars 10 forks source link

Sleep works only one time and does not allow TX_LOOP_TIME > 31 seconds #6

Closed zanco closed 4 years ago

zanco commented 4 years ago

Hi, viewing the serial output with sleep enabled I notice that after the first transmission the Atmel goes to sleep for the given number of seconds, than wakes up, starts the next transmission, goes to sleep again but wakes up in the same second.

Second issue about the same sleep function: With TX_LOOP_TIME set to anything above 32 seconds the value of TX_LOOP_TIME * 1000 gets out of range, gives a warning in the compiler but does program the software which does not ever gets back to transmit again.

awake_to_soon overflow_sleep

RoelKroes commented 4 years ago

Fixed issue with deep sleep and integer out of range. Thanks for testing!