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
Both functions can take any number of arguments, but accept only int and real. If one of the arguments is real, then all arguments are converted to real and the result is real; otherwise the result is int
Checklist:
[x] The pull request is done against the latest development branch
[x] Only relevant files were touched
[x] Only one feature/fix was added per PR and the code change compiles without warnings
[ ] The code change is tested and works with Tasmota core ESP8266 V.2.7.7
[x] The code change is tested and works with Tasmota core ESP32 V.3.0.2
Description:
Add
math.min()
andmath.max()
, from upstream https://github.com/berry-lang/berry/pull/437Both functions can take any number of arguments, but accept only
int
andreal
. If one of the arguments isreal
, then all arguments are converted toreal
and the result isreal
; otherwise the result isint
Checklist:
NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass