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

Tweak values by editing values of tweak nodes in Inspector #1666

Merged
merged 8 commits into from
Feb 7, 2019

Conversation

evgenykochetkov
Copy link
Contributor

@evgenykochetkov evgenykochetkov commented Feb 6, 2019

Works for all available tweak nodes except tweak-pulse

Closes #1624
Closes #1626
Closes #32

Copy link
Member

@nkrkv nkrkv left a comment

Choose a reason for hiding this comment

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

Coooool!


Found a bug.

  1. Place a text-lcd-16x2-i2c
  2. Bind “Hello” on L1
  3. Place a tweak-string-16 and link it to L2
  4. Set tweak value to “bro”
  5. Upload with debugger enabled

Expected behavior

  • The display shows “Hello bro”

Actual behavior

  • The display shows “Hello” (the second line is empty) until I change the tweak value to some other value. Starting from the change everything works fine

Copy link
Contributor

@brusherru brusherru left a comment

Choose a reason for hiding this comment

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

One issue with tweak-string-16.
I connected it with watch node and it always shows a message like "↘ +XOD:99:6:" on start debugging, even if I bound something into it. And pressing enter with the same value does nothing. Watch node contains watch label.
But when I change tweak-string-16 value to something new — it works as expected.
Probably it's a bug in C++ implementation...

P.S.
I thought that I can Simulate it too 😢


export default ({ getState }) => next => action => {
const state = getState();
const result = next(action);
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it does not make sense in this case, but next(action) can change the state, so I prefer to get state after calling next(action) :)

…es to serial from Inspector during debug session
@evgenykochetkov evgenykochetkov force-pushed the feat-tweaks-ui branch 2 times, most recently from e1c9b37 to d462261 Compare February 7, 2019 10:31
@evgenykochetkov
Copy link
Contributor Author

  • made it work in simulation as well
  • fixed tweak-string-16

check again, please

Copy link
Member

@nkrkv nkrkv left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

@brusherru brusherru left a comment

Choose a reason for hiding this comment

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

👍

@evgenykochetkov evgenykochetkov merged commit fc8b1bd into master Feb 7, 2019
@evgenykochetkov evgenykochetkov deleted the feat-tweaks-ui branch February 7, 2019 14:48
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.

3 participants