gemu2015 / Sonoff-Tasmota

Tasmota Fork TCS34725,PN532_i2,ccc1101 Moritz support,m5stack 4,7 epaper, hotplug drivers
GNU General Public License v3.0
24 stars 19 forks source link

abs() is part of USE_ANGLE_FUNC #35

Closed camel1cz closed 2 years ago

camel1cz commented 2 years ago

Hi,

I spend lot of time to find out abs() function is part of USE_ANGLE_FUNC and it's not mentioned in the docs.

I bet, it's just wrong placement of #endif in xdrv_10_scripter.ino around line 1759?

gemu2015 commented 2 years ago

this has been fixed several month ago. you seem to use an outdated version

camel1cz commented 2 years ago

Ah, sorry - it's not in stable tasmota (9.5.0) yet and I overlooked it in devel branch.

Btw. thanks for your great work. I switched from bare MCU to tasmota since I discovered your scripting language. Just one note - looking for errors in code is pain - it would be nice to have build with more debug information to make evelopment of larger projects easier. Also some script to upload code into tasmota with comments stripping, versioning and replacement of variable names would be cool. I have such script for my personal use, but it's just quick and dirty hack.

One more time: thank you!

gemu2015 commented 2 years ago

This is already there! Just look at tasmota docs scripting language for script editor

gemu2015 commented 2 years ago

https://www.dropbox.com/sh/0us18ohui4c3k82/AACcVmpZ4AfpdrWE_MPFGmbma?dl=0

camel1cz commented 2 years ago

Thank you, will give it a try... I saw it but wasn't aware of the features. Btw. does your cross compiler support also linux? Would be nice to have native app w/o fiddling with emulators.

gemu2015 commented 2 years ago

Sorry my crosscompiler only supports windows