Skip to content
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

Receving errors when trying to stop timers #13

Closed
element0355 opened this issue Mar 16, 2024 · 8 comments · Fixed by #14
Closed

Receving errors when trying to stop timers #13

element0355 opened this issue Mar 16, 2024 · 8 comments · Fixed by #14

Comments

@element0355
Copy link

When I try to stop any timers I get the error below. Can someone point into the right direction?

Error: active
Command failed to send, checking connection: 3
Lost connection, reconnecting...
Attempting to connect to NETWORK
Still attempting to connect to NETWORK
Still attempting to connect to NETWORK
WLAN Connected
Reconnected
Traceback (most recent call last):
File "", line 80, in
File "", line 76, in button_pressed
File "lib/utils.py", line 79, in call
File "lib/scout.py", line 103, in sleep
File "lib/scout.py", line 54, in resolve_timers
File "lib/scout.py", line 91, in get_timer
KeyError: active

@element0355
Copy link
Author

NVM, this was my fault no issues

@element0355
Copy link
Author

Reopening because this is an issue. When trying to stop timers it crashes the program, and need to restart the pico

@element0355 element0355 reopened this Mar 16, 2024
@MikeSchapp
Copy link
Owner

@element0355 Hey, thanks for reporting this issue. Let me look into it!

@MikeSchapp
Copy link
Owner

@element0355 what version of baby buddy are you using?

@MikeSchapp
Copy link
Owner

Created a branch to work on this, looks like the timer logic depends on a field that is no longer valid since 2.0. Did some testing and it seems to fix the issue. Will comment back when updates are merged.

@MikeSchapp MikeSchapp linked a pull request Mar 22, 2024 that will close this issue
@MikeSchapp
Copy link
Owner

@element0355 Merged, please try uploading the new firmware

@element0355
Copy link
Author

@MikeSchapp thanks for looking into this currently in the hospital with my newborn will test it out when we are finally home and let you know!

@MikeSchapp
Copy link
Owner

@element0355 Oh man congratulations!!! Enjoy every moment of it!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants