Skip to content

Commit

Permalink
refactor: ignore limit of not manual mode
Browse files Browse the repository at this point in the history
  • Loading branch information
EmixamPP committed Jul 31, 2023
1 parent 26c363a commit 370ec5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sources/command/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,15 @@ def configure(device: str | None, manual: bool, exhaustive: bool, emitters: int,
"Please specify your infrared camera path using the -d option."
)
exit(ExitCode.FAILURE)

logging.info(f"Configuring the camera: {device}.")
log_level = int(logging.getLogger().level == logging.DEBUG)
exit_code = subprocess.call(
[
BIN_GENERATE_DRIVER_PATH,
device,
str(emitters),
str(neg_answer_limit),
str(neg_answer_limit if manual else 256),
SAVE_DRIVER_FOLDER_PATH,
str(log_level),
str(int(manual)),
Expand Down

0 comments on commit 370ec5d

Please sign in to comment.