File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ local ModuleNumber = 0
4848local ModuleType = " "
4949local Module = {}
5050local InitialProtocol = 0
51+ local InitialSubProtocol = 0
5152
5253function bitand (a , b )
5354 local result = 0
7677local function Config_Release ()
7778 -- Set the protocol back to what it was
7879 Module .protocol = InitialProtocol
80+ Module .subProtocol = InitialSubProtocol
7981 model .setModule (ModuleNumber , Module )
8082
8183 -- Stop requesting updates
@@ -422,7 +424,9 @@ local function Config_Init()
422424 -- Get Module settings and set it to config protocol
423425 Module = model .getModule (ModuleNumber )
424426 InitialProtocol = Module .protocol
427+ InitialSubProtocol = Module .subProtocol
425428 Module .protocol = 86
429+ Module .subProtocol = 0
426430 model .setModule (ModuleNumber , Module )
427431 -- pause while waiting for the module to switch to config
428432 for i = 0 , 10 , 1 do end
You can’t perform that action at this time.
0 commit comments