Closed j3ling closed 7 years ago
For OpenTX 2.2 the SayBattPercent() function needs to be changed, as the unit parameter of the playNumber function has changed (see https://github.com/opentx/lua-reference-guide/blob/master/general/playNumber.md). The original script calls "Miles per Hour" instead of "Percent" as unit.
To fix this playNumber(round(lastsaynbattpercent), 8, 0) needs to be playNumber(round(lastsaynbattpercent), 13, 0) for openTX 2.2
Thanks! fix added.
For OpenTX 2.2 the SayBattPercent() function needs to be changed, as the unit parameter of the playNumber function has changed (see https://github.com/opentx/lua-reference-guide/blob/master/general/playNumber.md). The original script calls "Miles per Hour" instead of "Percent" as unit.
To fix this playNumber(round(lastsaynbattpercent), 8, 0) needs to be playNumber(round(lastsaynbattpercent), 13, 0) for openTX 2.2