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

Fix TorqDerate and CAN3Speed enum definitions #133

Merged

Conversation

davefiddes
Copy link
Contributor

The TorqDerate spot value does not display properly in the esp8266-web-interface. With a TorqDerate of 13 it displays UDClimHigh. The problem is due to "+" being an invalid character for enum value names. As the field is used as a bitfield change the definition to a bitfield enum which the web interface can display. Verify behaviour with power-of-two values and mix of values between 0 and 31.

Refix punctuation of CAN3Speed enum to allow it to be parsed by openinverter-can-tool

Tests:

  • Verify reading of TorqDerate and read/write of CAN3Speed parameters with:
    • esp8266-web-interface (tip) on Wemos D1 Mini clone
    • openinverter-can-tool 0.2.1

The TorqDerate spot value does not display properly
in the esp8266-web-interface. With a TorqDerate of
13 it displays UDClimHigh. The problem is due to "+"
being an invalid character for enum value names. As
the field is used as a bitfield change the definition to a
bitfield enum which the web interface can display.
Verify behaviour with power-of-two values and mix of
values between 0 and 31.

Refix punctuation of CAN3Speed enum to allow it to
be parsed by openinverter-can-tool
@Tom-evnut
Copy link
Collaborator

Did you test these changes work as they should?

@davefiddes
Copy link
Contributor Author

Yup. Hence the detail on how and what I tested it in the commit.

@Tom-evnut
Copy link
Collaborator

Yup. Hence the detail on how and what I tested it in the commit.

Thanks, it was not clear is if "tests" mean test ran or tests to be ran.

@davefiddes
Copy link
Contributor Author

Sorry. I only ever list the developer tests I have actually run with details of the HW and SW I used in my commits. This information is the sort of thing expected by larger projects and something I thought would be useful to reviewers of my OI PRs.

@damienmaguire damienmaguire merged commit b07cd3d into damienmaguire:master Dec 5, 2024
1 check passed
@damienmaguire
Copy link
Owner

Thanks Dave

@davefiddes davefiddes deleted the fix-enum-param-descriptions branch December 5, 2024 14:57
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