Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rocksnow1942 committed Jan 14, 2022
1 parent c1e9ab8 commit 7a0d881
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions ScannerApp/pages/HomePage.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ def checkUpdate(self):
while True:
try:
res = requests.get(githubURL)
ver = res.text.strip().split('=')[1].strip('"\' ')
ver = res.text.strip().split('\n')[0].split('=')[1].strip('"\' ')
if self.master.__version__ != ver:
self.versionVar.set('Update found.')
self.versionVar.set(f'Update {self.master.__version__} -> {ver}')
else:
self.versionVar.set(f'Appp Ver. {self.master.__version__}')
except Exception as e:
Expand Down
6 changes: 1 addition & 5 deletions ScannerApp/utils/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ def __init__(self,scanConfig,dmtxConfig,master):
self.loadSettings(scanConfig)
self.dmtxConfig = dmtxConfig
self.master = master
print('DTMX config',dmtxConfig)
print('Scan config',scanConfig)



def toggleZoom(self):
"toggle camera zoom state"
Expand Down Expand Up @@ -181,7 +177,7 @@ def scanDTMX(self,olderror=[],oldresult=[],attempt=0,needToVerify=96,plateId='')
code = self.decodePanel(panels,attempt=attempt,idx=idx)
oldCode = oldresultDict.get(label,'')
if oldCode and code and oldCode != code:
print('new read:',oldCode+'->'+code)
# print('new read:',oldCode+'->'+code)
previousReads = oldCode.split('->')
oldCode = '->'.join(previousReads[-2:])
yield oldCode+'->'+code
Expand Down

0 comments on commit 7a0d881

Please sign in to comment.