earthlcd / ezLCD-5x

Public Repository for ezLCD-5035-RT release files system, firmware and issue reporting
https://earthlcd.com/products/ezlcd-5x?_pos=1&_sid=0927d2260&_ss=r
0 stars 1 forks source link

ez.SerialTx parameter order error #68

Closed JacobChrist closed 1 year ago

JacobChrist commented 1 year ago

Describe the issue A clear and concise description of what the issue is.

The rs485.lua example has this code:

--  ez.SerialTx(Data, MaxLen, PortNo)
    ez.SerialTx(ez.SerialNo, 24, 1)

The ezLCD Lua Application Programming Interface (Section 30.4 p. 128) describes the ez.SerialTx() as such:

ez.SerialTx(Data [, PortNo [, MaxLen ]])

One of the two is incorrect. Randy says that the rs485.lua is working code, if so then the documentation is in error.

microlan commented 1 year ago

MaxLen and PortNo are reversed in the docs. PortNo should be the last param. Fixed in docs updated on or after 3/29/23.

JacobChrist commented 1 year ago

Thanks.