From 2c91078b54121c346977b0a9f6178f8dc451e698 Mon Sep 17 00:00:00 2001 From: dean Date: Tue, 27 Mar 2018 16:49:26 -0400 Subject: [PATCH] fix valueError --- adafruit_as726x.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit_as726x.py b/adafruit_as726x.py index aa7b7c8..e3d435a 100644 --- a/adafruit_as726x.py +++ b/adafruit_as726x.py @@ -124,7 +124,7 @@ def __init__(self, i2c_bus): self._driver_led = False self._indicator_led = False self._driver_led_current = Adafruit_AS726x.DRIVER_CURRENT_LIMITS.index(12.5) - self._indicator_led_current = Adafruit_AS726x.INDICATOR_CURRENT_LIMITS.index(0) + self._indicator_led_current = Adafruit_AS726x.INDICATOR_CURRENT_LIMITS.index(1) self._conversion_mode = Adafruit_AS726x.MODE_2 self._integration_time = 0 self._gain = Adafruit_AS726x.GAIN.index(1)