Skip to content

found error while building #227

@abisop

Description

@abisop

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions