From 5d5b047f6f5c98b64ee0a608cbc2ec9a90ab6f8d Mon Sep 17 00:00:00 2001 From: "support.sampyo" Date: Fri, 24 May 2024 05:42:03 +0000 Subject: [PATCH] Commit message --- framework.yaml | 2 +- main.py | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/framework.yaml b/framework.yaml index d264080..3f0d3be 100644 --- a/framework.yaml +++ b/framework.yaml @@ -7,5 +7,5 @@ spec: virtualEnv: base # 사용할 가상환경 이름입니다. package: requirements.txt # 설치할 Python 패키지 정보 파일입니다.(기본 값은 requirement.txt 입니다.) stackbase: - tagName: v0.0.5 # Stackbase(gitea)에 릴리즈 태그명 입니 + tagName: v0.0.6 # Stackbase(gitea)에 릴리즈 태그명 입니 repoName: sampyo-rs232 # Stackbase(gitea)에 저장될 저장소 이릅니다. diff --git a/main.py b/main.py index ae76c6a..096c60a 100644 --- a/main.py +++ b/main.py @@ -23,12 +23,15 @@ async def measurement_weight(port, data): # print(result) - if result < 0.0: - result = 0.0 + # if result < 0.0: + # result = 0.0 data.setValues(3, 1, [int(result)]) except Exception as e: print(f'measurement_weight: \n{e}') + port.close() + time.sleep(0.5) + port.open() pass await asyncio.sleep(1)