chacal / stm32sleep

Helper library for using Stop & Standby modes with STM32duino
MIT License
21 stars 11 forks source link

sleepAndWakeUp takes uint8_t #1

Open mattwilliamson opened 7 years ago

mattwilliamson commented 7 years ago

The signature is void sleepAndWakeUp(SleepMode mode, RTClock *rt, uint8_t seconds);

So 8 bits which gives us 255s or 4.25 minutes. Is there any reason not to use uint32_t so we can sleep longer?

mattwilliamson commented 7 years ago

For me, I'm using a GPS to get the current time and calculate sunset and sunrise to open and close a door. As soon as I get the time from satellites, I can sleep until the next time I need to open or close.

EndWar77 commented 6 years ago

я исправил в двух местах его библиотеки с uint8_t на uint32_t и время сна с макс 4,25 мин увеличилось до макс ~135 лет... ))

nopnop2002 commented 6 years ago

Thank you for useful library. I hope to change from uint8_t to uint32_t.