From f317355df994fae7c785a3a8ef30f34f0f4987e0 Mon Sep 17 00:00:00 2001 From: jodaguth Date: Tue, 5 May 2020 01:14:01 -0700 Subject: [PATCH] a --- Command.py | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/Command.py b/Command.py index 36147ba..9a6121b 100644 --- a/Command.py +++ b/Command.py @@ -162,26 +162,13 @@ def updateSubSpinner(self,text): ii = i[0] d = d[self.ids.spinner_2.text] tmp,hum,press = d[0] - if self.ids.spinner_2.text in flg.keys(): - flg[self.ids.spinner_2.text].append(ii) - else: - flg[self.ids.spinner_2.text] = [] - flg[self.ids.spinner_2.text].append(ii) - self.ids.label_tempd.text = str(round(tmp,2)) self.ids.label_humd.text = str(round(hum,2)) self.ids.label_pressd.text = str(round(press,2)) if self.ids.spinner_3.text == '': self.updateNewSpinner(self.ids.spinner_2.text) else: - dd = flg[self.ids.spinner_2.text] - if len(dd) == 2: - flg[self.ids.spinner_2.text] = [] - if dd[0] != dd[1]: - self.updateNewSpinner(self.ids.spinner_2.text) - flg[self.ids.spinner_2.text] = [] - - + self.updateNewSpinner(self.ids.spinner_2.text) def send_mesg(txt,txt1,txt2,*args): @@ -189,6 +176,8 @@ def send_mesg(txt,txt1,txt2,*args): tx1 = str(txt2) txt4 = [tx,tx1] send_data(txt4,0) + dataIN[1][tx][0] = tx1 + def onExit(self): BoxProjectApp().stop() Master = False