-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove boot rollover code #75
Comments
I concur on this. For whomever decides to tackle this I believe you can also run the test from the from pysquared import cubesat as c #If not already imported
c.c_boot = 255
print(c.c_boot)
c.c_boot += 1
print(c.c_boot) |
I gave this a shot using Michael's suggestion by using the REPL. After adding 1 to c.c_boot, it kept staying at 255. I'm a little unsure on what I should do next. |
It looks like |
Completed in #87. Closing. |
pysquared tracks how many boot cycles a system has gone through by storing a count in a byte in persistent memory. We believe that the count will automatically rollover after it hits 255 but we have added a safety catch that forces a rollover at 200:
circuitpy_flight_software/FC_Board/lib/pysquared.py
Lines 207 to 208 in 84674e0
To improve code flow and reduce complexity we could remove this rollover code if someone proves that we don't need it...
Thoughts on how to test:
Create a simple/blank main.py, on boot set a byte in persistent memory to 255, add 1 to that byte and set it, read the byte. If the byte reads 0 and no errors are found, we should be able to remove this code.
The text was updated successfully, but these errors were encountered: