I have coded a fix for a major problem with the Arduino
map function (in
I submitted it as a comment to map function causes huge errors when mapping to small intervals due to integer truncation #10382 but heard nothing so far.
I thought it might be handled quicker if I can submit it as a Pull Request with Unit Tests to A) expose how and why
map is faulty and B) show how my solution fixes the problem.