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

Refactor BrewFlasher.com Integration #29

Merged
merged 8 commits into from
Aug 13, 2023
Merged

Refactor BrewFlasher.com Integration #29

merged 8 commits into from
Aug 13, 2023

Conversation

thorrak
Copy link
Owner

@thorrak thorrak commented Aug 13, 2023

This PR refactors brewflasher_com_integration.py to match the one in use by BrewFlasher CLI edition in order to keep the two in sync. This changes the object definitions to use @dataclass syntax for better type hinting and adds the DeviceFamily object to the Firmware object to simplify some of the logic.

This PR also refactors out the "flash" action into its own function - flash_firmware_using_whatever_is_appropriate() - which (mostly) matches the one in use within BrewFlasher CLI. This should (hopefully!) allow the two to remain in sync, and also adds BrewFlasher CLI's Arduino support to BrewFlasher Desktop.

@thorrak thorrak merged commit 709a1da into master Aug 13, 2023
@thorrak thorrak deleted the dataclass branch August 13, 2023 12:14
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 this pull request may close these issues.

1 participant