Quote:
Originally Posted by ratdude747
I added a new while loop to the periodic tasks.
attached is the image of what is in the loop.
does it look right?
|
You're going to need to throttle that loop. Without a wait like what's in the other periodic task loops, it'll run full bore and eat up all the CPU time it can. 50 ms is probably a good value.
Otherwise, it looks okay, except that I can't tell what's in the other cases of the power selection. The contents should be obvious, but there's always the chance that something got miswired by mistake.