Skip to content

Commit

Permalink
fixed function decloration of abs
Browse files Browse the repository at this point in the history
  • Loading branch information
ol2764RIT committed Mar 23, 2024
1 parent 2449bc7 commit 45c35de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/dev/RedundantADC.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace HIB::DEV {
*/

/**
* Function to calculate absolute value.
* Function to calculate absolute value. Helper
*
* @param[in] value The value to calculate the absolute value of.
* @return int32_t The absolute value of the input value.
Expand Down
1 change: 1 addition & 0 deletions src/dev/RedundantADC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ constexpr uint32_t HIGH_MARGIN = 5;

namespace HIB::DEV {

//Helper Function to calculate absolute value
int32_t abs(int32_t value) {
return (value < 0) ? -value : value;
}
Expand Down

0 comments on commit 45c35de

Please sign in to comment.