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

found error while building #227

Open
abisop opened this issue Mar 28, 2024 · 0 comments
Open

found error while building #227

abisop opened this issue Mar 28, 2024 · 0 comments

Comments

@abisop
Copy link

abisop commented Mar 28, 2024

ERROR:
src/rc_battery_monitor.c:178:20: warning: using integer absolute value function ‘abs’ when argument is of floating-point type ‘double’ [-Wabsolute-value]
178 | if(abs(new_v_jack-v_jack)>2){

SOL:
should be typecasted to int first.

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

No branches or pull requests

1 participant