arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
21.7k stars 4.72k forks source link

Berry automatic rounding of float to int when calling C mapped functions #21601

Closed s-hadinger closed 3 weeks ago

s-hadinger commented 3 weeks ago

Description:

Berry: when a C function expects an int argument, if a real argument is provided, it is automatically converted to int and rounded.

This is a more generalist solution to #21598

Checklist:

NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass