Clooney82 / MavLink_FrSkySPort

This MavLink_FrSkySPort repository is discontinued! The development is moved to athertop/MavLink_FrSkySPort. Please do not use this repo, and follow the link to athertop.
https://github.com/athertop/MavLink_FrSkySPort
GNU General Public License v3.0
61 stars 17 forks source link

Timer problem - incorrect value notation for minuteBeep #44

Closed Clooney82 closed 9 years ago

Clooney82 commented 9 years ago

The parameter minuteBeep is boolean type so the false and nil values are treated as FALSE, any other value (including 0) is treated as TRUE. That is the way Lua works, we use http://pgl.yoyo.org/luai/i/lua_toboolean function. The same is true for parameter carryTrim in funciton model.insertMix(). It also uses boolean type. So just write minuteBeep=false.