bme280_int.py: Fix the range for sealevel setting.

It's now Pa in the range 30000 to 120000.

Signed-off-by: robert-hh <robert@hammelrath.com>
master
robert-hh 2024-03-03 20:59:23 +01:00
rodzic 6c0b723039
commit 32b9fe9641
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 32EC5F755D5A3A93
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -226,7 +226,7 @@ class BME280:
@sealevel.setter
def sealevel(self, value):
if 300 < value < 1200: # just ensure some reasonable value
if 30000 < value < 120000: # just ensure some reasonable value
self.__sealevel = value
@property