From 1dfdd0bba8ea748a461b774a392ee8faff09d390 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Wed, 06 Jun 2012 17:54:24 +0000 Subject: fix probelm where resistance labels not always updated --- diff --git a/plugins/audio_sensors/audio_sensors.py b/plugins/audio_sensors/audio_sensors.py index 0662acb..355fe98 100644 --- a/plugins/audio_sensors/audio_sensors.py +++ b/plugins/audio_sensors/audio_sensors.py @@ -355,12 +355,12 @@ class Audio_sensors(Plugin): resistance = 420000000 elif self.hw == XO175: if avg_buf < 30700: - return (180000000 / (30700 - avg_buf)) - 3150 + resistance = (180000000 / (30700 - avg_buf)) - 3150 else: resistance = 999999999 else: # XO 3.0 if avg_buf < 30514: - return (46000000 / (30514 - avg_buf)) - 1150 + resistance = (46000000 / (30514 - avg_buf)) - 1150 else: resistance = 999999999 if channel == 0: -- cgit v0.9.1