huaxin_api/l1_client.py
@@ -58,7 +58,12 @@ class MdSpi(xmdapi.CTORATstpXMdSpi): def __init__(self, api): for i in range(3): try: self.codes_sh, self.codes_sz = get_level1_codes() break except: time.sleep(2) xmdapi.CTORATstpXMdSpi.__init__(self) self.__api = api @@ -150,7 +155,6 @@ {"type": type_, "data": {"data": datas}}) if pipe_l2 is not None: pipe_l2.send(fdata) def run(pipe_l2):