edgetx
edgetx copied to clipboard
Enable/Disable Logging to SD Card from LUA
Is there an existing issue for this feature request?
- [X] I have searched the existing issues
Is your feature request related to a problem?
no
Describe the solution you'd like
add a LUA Function to enable/disable Logging to SD Card like:
sdlogging(true)
and
sdlogging(false)
optionally with an option to specify the interval.
I'd like to use this in a LUA Script ... to dynamically turn logging on for certain circumstances.
I'm sure this could be usefull for other LUA Scripts too
Describe alternatives you've considered
none
Additional context
i have tried to do it myself in the code ... but i have no knowhow with C++ ... i'm sure for a DEV it would be easy to do. I have managed to create a LUA Function that turns logging on or off by modifying initLoggingTimer() logsWrite() with a Boolean value ... but the status was not reflected on the UI.