Skip to content

Commit

Permalink
Fixed config update issue
Browse files Browse the repository at this point in the history
  • Loading branch information
connervieira committed Nov 10, 2024
1 parent fbb92b8 commit 1f57d47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -533,3 +533,4 @@ November 4th, 2024
## Version 11.1

- Predator now issues a warning if a GPIO button appears to be stuck.
- Fixed an issue where Predator would fail to start if the `developer>frame_count_method` configuration value was not present.
2 changes: 2 additions & 0 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ def process_timing(action, identifier):
from gps import * # Required to access GPS information.
import gpsd
import signal # Required to time out functions.
if ("developer" not in config or "frame_count_method" not in config["developer"]):
config["developer"]["frame_count_method"] = "manual"
if (config["developer"]["frame_count_method"] in ["manual" or "opencv"]):
try:
import cv2
Expand Down

0 comments on commit 1f57d47

Please sign in to comment.