1
0
mirror of https://github.com/cmur2/python-bme680.git synced 2024-12-22 22:54:29 +01:00

No need to set power mode

This commit is contained in:
Phil Howard 2017-10-17 14:37:32 +01:00
parent e930b211c9
commit 3751865cb6

View File

@ -32,8 +32,6 @@ sensor.select_gas_heater_profile(0)
# sensor.set_gas_heater_profile(200, 150, nb_profile=1) # sensor.set_gas_heater_profile(200, 150, nb_profile=1)
# sensor.select_gas_heater_profile(1) # sensor.select_gas_heater_profile(1)
sensor.set_power_mode(bme680.FORCED_MODE)
print("\n\nPolling:") print("\n\nPolling:")
try: try:
while True: while True:
@ -46,8 +44,6 @@ try:
else: else:
print(output) print(output)
sensor.set_power_mode(bme680.FORCED_MODE)
time.sleep(1) time.sleep(1)
except KeyboardInterrupt: except KeyboardInterrupt: