def start(*k, **kw): if api.is_running(): if hasattr(api, "start"): api.start(*k) else: print("sc_start is not implemented") from usi import shell if shell.is_running(): shell.stop()
def stop(*k, **kw): if api.is_running(): api.stop() from usi import shell if shell.is_running(): shell.stop()