from .BxCmd import baseBxCmd from .BxCmdCode import CMD_CANCEL_TIMING_SWITCH class CmdCancelTimingSwitch(baseBxCmd): def __init__(self): super().__init__(CMD_CANCEL_TIMING_SWITCH.group, CMD_CANCEL_TIMING_SWITCH.code) def Build(self): result = bytearray() # 写入命令组 result.append(self.Group()) # 写入命令 result.append(self.Cmd()) # 写入响应标志 result.append(self.ReqResp()) # 写入保留值 result.extend([0x00, 0x00]) return None def NewCmdCancelTimingSwitch(): return CmdCancelTimingSwitch()