diff options
author | Walter Bender <walter.bender@gmail.com> | 2012-06-06 17:54:24 (GMT) |
---|---|---|
committer | Walter Bender <walter.bender@gmail.com> | 2012-06-06 17:54:24 (GMT) |
commit | 1dfdd0bba8ea748a461b774a392ee8faff09d390 (patch) | |
tree | d7e6564904a1553b0ca2dec37d8ea00eecb9717b | |
parent | ea8111ae751b7719aa26c2ceb457ae5a29cce39d (diff) |
fix probelm where resistance labels not always updated
-rw-r--r-- | plugins/audio_sensors/audio_sensors.py | 4 |
1 files changed, 2 insertions, 2 deletions
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: |