From febe5dcf338b420bd138f942fba893dfb4d9ce8a Mon Sep 17 00:00:00 2001 From: "support.sampyo" Date: Tue, 26 Mar 2024 08:41:13 +0000 Subject: [PATCH] Commit message --- framework.yaml | 2 +- main.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/framework.yaml b/framework.yaml index 4088f61..dc96540 100644 --- a/framework.yaml +++ b/framework.yaml @@ -7,5 +7,5 @@ spec: virtualEnv: base # 사용할 가상환경 이름입니다. package: requirements.txt # 설치할 Python 패키지 정보 파일입니다.(기본 값은 requirement.txt 입니다.) stackbase: - tagName: v0.0.6 # Stackbase(gitea)에 릴리즈 태그명 입니다. + tagName: v0.0.7 # Stackbase(gitea)에 릴리즈 태그명 입니다. repoName: sampyo-dio # Stackbase(gitea)에 저장될 저장소 이릅니다. diff --git a/main.py b/main.py index 1cf77b4..53daa11 100644 --- a/main.py +++ b/main.py @@ -45,6 +45,7 @@ def Valve_PureWater(chip, status, action): def Measure_Weight(client): # print('In') + val = 0 try: result = client.read_holding_registers(1, 1) if result.isError(): @@ -52,9 +53,8 @@ def Measure_Weight(client): else: val = result.registers[0] val -= 1000 - val /= 1000 - - # print(f'value: {val}') + val /= 1000 + print(f'value: {val}') except Exception as e: pass