You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using require statements, and having some_module.lua in same folder as main.lua, require works perfectly when testing in simulator
require "some_module"
However, on real hardware the script (widget) doesn't show up. Replacing require "some_module" with dofile("some_module") makes it work. But of course require is much preferable.
BTW. I can't debug what is going on, because connecting serial for debugging needs radio running, but then scripts were already loaded. Is there a way to see the debug output while radio is booting up?
The text was updated successfully, but these errors were encountered:
Testing on Ethis 1.5.7, x20s.
Using
require
statements, and havingsome_module.lua
in same folder asmain.lua
,require
works perfectly when testing in simulatorHowever, on real hardware the script (widget) doesn't show up. Replacing
require "some_module"
withdofile("some_module")
makes it work. But of courserequire
is much preferable.BTW. I can't debug what is going on, because connecting serial for debugging needs radio running, but then scripts were already loaded. Is there a way to see the debug output while radio is booting up?
The text was updated successfully, but these errors were encountered: