Skip to content

Complete db operations and extend state machine to support init#9

Merged
choden-dev merged 3 commits intomainfrom
complete-db-operations-and-extend-state-machine-to-support-init
Nov 14, 2025
Merged

Complete db operations and extend state machine to support init#9
choden-dev merged 3 commits intomainfrom
complete-db-operations-and-extend-state-machine-to-support-init

Conversation

@choden-dev
Copy link
Copy Markdown
Owner

@choden-dev choden-dev commented Nov 14, 2025

Support reading from config and handle device disconnection

Introduced a new state in the state machine (InitialiseDevice). This state handles getting values from the database and scanning for the device. This state will also be reached when the device disconnects, allowing the program to keep running despite there being no device.

Warning

Currently the way we check for the device disconnecting is by comparing strings on the HidError, if a more robust way to identify a disconnect exists we should definitely use that 💀

Next steps

This PR now allows for the frontend/CLI to be developed, and we can work on extending the key config.

@choden-dev choden-dev merged commit ce49526 into main Nov 14, 2025
8 checks passed
@choden-dev choden-dev deleted the complete-db-operations-and-extend-state-machine-to-support-init branch November 14, 2025 23:33
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