-
Notifications
You must be signed in to change notification settings - Fork 1
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
Brushless checkbox only changes plan options, not EBB connection #126
Comments
I can reproduce. The PlanOptions and so on get changed by toggling the checkbox. However, there's currently no way of changing the underlying EBB driver. It gets initialized once and then can't be changed. There is mismatch in data flow. The EBB device info used to be sent all the way up to the UI (in nornagon@0e9cd16). However, that broke with the refactor in 3e89b85, since the new |
@jedahan does my explanation make sense? any ideas how to clean it up? |
I had a draft comment from a while ago, but I will need to spend some time re-familiarizing myself with the code to see if this is off-tangent or relevant. Expect a followup in ~3 days Some ideas for refactors. There are a few things going on here - one is properly bringing hardware outside planOptions in the UI (this might have just been a hack for me to re-use existing codepaths, instead of understanding the UI framework better), and a way to move initialization of things like pin settings to runtime instead of "build" time. The second thing is that I think the word hardware is overloaded. We could jam on a document to explore options, but here is just one way to slice things, to get that discussion started, as an example:
|
I took another look and created a (very rough) PR that does manage to change the underlying |
Good point. What about keeping things simple and just using |
Yeah, I realize there is currently no mechanism that updates the React checkbox, since it's storing its state rather than getting it from the EBB.
|
nornagon#195 had a case where starting the app via
npm start
, and then later clicking the 'brushless' checkbox in the UI didn't apple the changes to switch to brushless. Writing a test to catch this case would be useful, and fixing whatever is broken.originally posted by @jedahan in nornagon#202 (comment)
The text was updated successfully, but these errors were encountered: