From 5d6c2ac5559e3e0c8912b9785abb42c2b66b6324 Mon Sep 17 00:00:00 2001 From: jerick Date: Mon, 28 Nov 2022 16:08:47 -0500 Subject: [PATCH] removing process killer --- mqtt/tempSensor.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mqtt/tempSensor.py b/mqtt/tempSensor.py index da2f26c..8fa64ca 100644 --- a/mqtt/tempSensor.py +++ b/mqtt/tempSensor.py @@ -90,10 +90,10 @@ def publish(client, temp, humidity): # We first check if a libgpiod process is running. If yes, we kill it! -for proc in psutil.process_iter(): - if proc.name() == 'libgpiod_pulsein' or proc.name() == 'libgpiod_pulsei': - proc.kill() -time.sleep(1.0) +# for proc in psutil.process_iter(): +# if proc.name() == 'libgpiod_pulsein' or proc.name() == 'libgpiod_pulsei': +# proc.kill() +#time.sleep(1.0) client = connect_mqtt() client.loop_start() print (sensor)