Skip to content

Commit

Permalink
Remove map and makeWord from WMath.cpp
Browse files Browse the repository at this point in the history
Resolves conflict due to these functions already being defined in the Arduino API files: Common.h/Common.cpp found in the api folder.
  • Loading branch information
bmourit authored Apr 19, 2024
1 parent c343ce4 commit 5bdda0a
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions cores/arduino/WMath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,3 @@ extern long random(long howsmall, long howbig)

return random(diff) + howsmall;
}

extern long map(long x, long in_min, long in_max, long out_min, long out_max)
{
return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
}

extern uint16_t makeWord(uint16_t w)
{
return w ;
}

extern uint16_t makeWord(uint8_t h, uint8_t l)
{
return (h << 8) | l ;
}

0 comments on commit 5bdda0a

Please sign in to comment.