Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5323

MicroPython • Re: Code getting stuck after count

$
0
0
Thank you so much,
You have three countdown timers. Each for the same 4 hours.
Let me just clarify that there should only be one count-down, and they are all else/if statements based on the decision tree below:

Is there water in the tank?

If no wait four hours and restart loop

if yes, does the soil need watering?

If no wait four hours and restart loop

if yes water, then wait four hours and restart loop.
Maybe it is doing what you asked. But what you asked is not what you actually wanted...
So let me check;

What I want is that it checks each of those and then counts down 4 hours until it checks again. How would I change the code to make that happen?

Again, thank you so much for this

Statistics: Posted by sattynav — Fri Aug 02, 2024 1:34 pm



Viewing all articles
Browse latest Browse all 5323

Trending Articles