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

Create example that makes it easy to track potential issue with Lua require command #60

Open JacobChrist opened 1 year ago

JacobChrist commented 1 year ago

Describe the bug When testing the Lua require command I saw some funny behavior when trying to requrie lua scripts that are both in the same directory as the calling script as well as in a sub directory in the directory of the calling script. Specifically, it seemed that when the two require statements were added that some of the imported functions did not get loaded (or maybe they got overwritten by the second require call). The issue may be my lack of Lua experience. This task is for me to create a better example in the form of:

/calling.lua /called1.lua /sub/called2.lua