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 rawcommand bug #28

Merged
merged 3 commits into from
May 6, 2024
Merged

fix rawcommand bug #28

merged 3 commits into from
May 6, 2024

Conversation

PonomarevDA
Copy link
Contributor

RawCommand is applied to PWM pins even if their channels are greater than rawcommand size. It actually leads to access outside an array. In practice, a random value is applied to such PWM pins.

I configured pwm.1_ch = 0 and pwm.4_ch = 6 and send a RawCommand with size=4. Look at power_rating_pct.

Here is an example of configuration, command and feedback.

drawing

This PR fixes the bug.

@PonomarevDA PonomarevDA added the bug Something isn't working label May 6, 2024
@PonomarevDA PonomarevDA self-assigned this May 6, 2024
@PonomarevDA PonomarevDA merged commit 3fd05cd into main May 6, 2024
10 checks passed
Copy link

sonarqubecloud bot commented May 6, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@PonomarevDA PonomarevDA deleted the pr-fix-rawcommand-bug branch May 16, 2024 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant