Skip to content

Commit 70066ef

Browse files
committed
土壤湿度小于阈值
1 parent 7302ff9 commit 70066ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

port/modules/bluebit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1630,7 +1630,7 @@ def __init__(self, pin):
16301630
def detect(self):
16311631
'''是否探测到,布尔类型True/False'''
16321632
tmp = self.get_raw_val()
1633-
if(tmp>=self.threshold):
1633+
if(tmp<=self.threshold):
16341634
return True
16351635
else:
16361636
return False

0 commit comments

Comments
 (0)