Skip to content
Snippets Groups Projects
Unverified Commit bf36c321 authored by Benji's avatar Benji Committed by GitHub
Browse files

Update mcp3008.py

parent e2d25d68
Branches
Tags
No related merge requests found
...@@ -49,7 +49,7 @@ class Sensor(GenericSensor): ...@@ -49,7 +49,7 @@ class Sensor(GenericSensor):
_LOG.warning("MCP3008: Reading from channel %r", channel) _LOG.warning("MCP3008: Reading from channel %r", channel)
if channel == "invalid": if channel == "invalid":
raise Exception("Channel '" + config["channel"] + "' not found!") raise Exception("Channel '" + config["channel"] + "' not found!")
value = self.mcp.read_adc(i) value = self.mcp.read_adc(channel)
_LOG.warning("MCP3008: value %d", value) _LOG.warning("MCP3008: value %d", value)
return value return value
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment