Files
arduino-esp32/cores/esp32
IanSC 5be3ff74ea Unnecessary operation removed from map() in WMath.cpp (#6218)
* Unneccesary Operation Removed

(A) extra operation not needed and incorrect:
      wrong by 0.5 but happens to be thrown out

     ( delta * dividend + (divisor / 2) ) / divisor

        delta * dividend     divisor
    = ---------------- + -----------
        divisor                    2 * divisor

    = delta * dividend / divisor + 1/2

(B) check first before doing other computations

(C) changed to rise/run, easier for future maintainer
      since it's closer to equation of a line

(D) before: mult, shift, add, div, add
      now: mult, div, add

(E) error message easier to trace where thrown

* Update WMath.cpp

forgot to change variable name
2022-02-01 13:26:52 +02:00
..
2021-03-11 12:11:53 +02:00
2016-10-06 07:09:44 -06:00
2021-11-18 14:25:04 +02:00
2021-03-11 12:11:53 +02:00
2021-03-11 12:11:53 +02:00
2021-03-11 12:11:53 +02:00
2021-03-11 12:11:53 +02:00
2021-04-15 14:32:03 +03:00
2021-03-11 12:11:53 +02:00
2021-03-11 12:11:53 +02:00
2021-10-01 17:52:29 +03:00
2016-12-12 01:32:55 +02:00
2016-12-12 01:32:55 +02:00
2021-03-11 12:11:53 +02:00
2021-03-11 12:11:53 +02:00
2020-11-08 04:55:59 +02:00
2016-10-06 07:09:44 -06:00
2018-06-27 09:01:06 +02:00
2019-05-11 11:16:05 +03:00
2021-10-01 17:52:29 +03:00
2021-10-01 17:52:29 +03:00
2016-10-06 07:09:45 -06:00
2020-11-02 22:11:26 +02:00
2022-01-31 13:07:37 +02:00