beagleboard / beagleboard/librobotcontrol

found error while building

Open
#227 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
C
Stars
212
Forks
167
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.