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

Added getProperty and additional cli args #15

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

enochjlee
Copy link

Added getProperty support
Added support for KBOOT property responses
Added verbose log option
Added option to not reset after upload
Added option to assume upload success and not care the response times out

I don't have a device with the bootloader and a CAN interface, so I couldn't test that configuration. There may be unforeseen behavior conflicts.

@Lauszus Lauszus added this to the 1.6.0 milestone May 6, 2024
@Lauszus Lauszus added the enhancement New feature or request label May 6, 2024
pyblhost/pyblhost.py Outdated Show resolved Hide resolved
pyblhost/pyblhost.py Outdated Show resolved Hide resolved
pyblhost/pyblhost.py Show resolved Hide resolved
pyblhost/pyblhost.py Show resolved Hide resolved
pyblhost/pyblhost.py Show resolved Hide resolved
pyblhost/pyblhost.py Show resolved Hide resolved
Added getProperty support
Added support for KBOOT property responses
Added verbose log option
Added option to not reset after upload
Added option to assume upload success and not care the response times out
pyblhost/pyblhost.py Show resolved Hide resolved
@@ -889,6 +924,11 @@ def cli() -> None:
type=int,
default=500000,
)
optional.add_argument("--prop", help="The property tag to get", type=int, default=0)
optional.add_argument("--reset", help="Reset the target after upload", type=bool default=True)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
optional.add_argument("--reset", help="Reset the target after upload", type=bool default=True)
optional.add_argument("--reset", help="Reset the target after upload", type=bool, default=True)

if parsed_args.verbose:
logger.setLevel(logging.DEBUG)
else:
logger.setLevel(logging.INFO)
logger.setLevel(logging.INFO)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
logger.setLevel(logging.INFO)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants