def toggleCommandPaths (resetTagPath, enableTagPath): """ This function receives two paths, resetTagPath set to False, then the enabletagPath is set to True Params: resetTagPath: string enableTagPath: string Returns: none """ def writeSeparate(): def writeEnable(asyncReturn): system.tag.writeBlocking([enableTagPath],[1]) system.tag.writeAsync([resetTagPath],[0], writeEnable) def writeAll(): system.tag.writeBlocking([resetTagPath, enableTagPath], [0,1]) writeAll() # writeSeparate()