How do I reset values when the session is reset?
I am trying to make a fuel remaining / fuel consumed channel and I want to reset it's value when we add fuel to the car.
reset virtual channels when session is reset
Hi, when you say "the session is reset" do you mean, when the button on app is pressed to reset the session?
One thing you can do is check the SessionTime channel. If the session is reset, the SessionTime is reset to 0. You can check for this in your Lua script and take appropriate action.
Hope this helps, let us know what you figure out!
One thing you can do is check the SessionTime channel. If the session is reset, the SessionTime is reset to 0. You can check for this in your Lua script and take appropriate action.
Hope this helps, let us know what you figure out!