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
2022-01-31 13:15:10 +02:00
2022-01-21 01:15:38 +02:00
2022-01-20 13:14:25 +02:00
2022-01-20 13:14:25 +02:00
2019-04-16 03:08:50 +02:00
2016-10-06 07:09:44 -06:00

Arduino core for the ESP32, ESP32-S2 and ESP32-C3

Build Status Documentation Status

Need help or have a question? Join the chat at https://gitter.im/espressif/arduino-esp32

Contents

Development Status

Latest Stable Release Release Version Release Date Downloads

Latest Development Release Release Version Release Date Downloads

Documentation

You can use Arduino-ESP32 Online Documentation to get all information about this project.

Supported Chips

Visit the supported chips documentation to see the list of current supported ESP32 SoCs.

Decoding exceptions

You can use EspExceptionDecoder to get meaningful call trace.

Issue/Bug report template

Before reporting an issue, make sure you've searched for similar one that was already created. Also make sure to go through all the issues labelled as Type: For reference.

Finally, if you are sure no one else had the issue, follow the Issue template or Feature request template while reporting any new Issue.

Contributing

We welcome contributions to the Arduino ESP32 project!

See contributing in the documentation for more information on how to contribute to the project.

Description
Arduino core for the ESP32
Readme 1.6 GiB
Languages
C 74.1%
C++ 25.4%
Makefile 0.3%
CMake 0.2%