Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/plugins/audio_sensors
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/audio_sensors')
-rw-r--r--plugins/audio_sensors/audio_sensors.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/audio_sensors/audio_sensors.py b/plugins/audio_sensors/audio_sensors.py
index 6b32e41..e0d7c76 100644
--- a/plugins/audio_sensors/audio_sensors.py
+++ b/plugins/audio_sensors/audio_sensors.py
@@ -340,12 +340,14 @@ class Audio_sensors(Plugin):
if self.hw == XO1:
resistance = 2.718 ** ((float(_avg(buf)) * 0.000045788) + \
8.0531)
- else:
+ elif self.hw == XO15:
avg_buf = float(_avg(buf))
if avg_buf > 0:
resistance = (420000000 / avg_buf) - 13500
else:
resistance = 420000000
+ else: # XO 1.75
+ return (46000000 / (30514 - avg_buffer)) - 1150
if channel == 0:
self._parent.lc.update_label_value('resistance', resistance)
else: