We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 545b34a commit 4b23090Copy full SHA for 4b23090
lib/MCP3x6x/MCP3x6x.cpp
@@ -297,7 +297,9 @@ uint8_t MCP3x6x::_getChannel(uint32_t raw) {
297
int32_t MCP3x6x::analogRead(mux_t ch) {
298
// MuxMode
299
if (settings.scan.channel.raw == 0) {
300
+#ifdef MCP3x6x_DEBUG
301
Serial.println("mux");
302
+#endif
303
settings.mux = ch;
304
_status = write(settings.mux);
305
_status = conversion();
@@ -307,7 +309,9 @@ int32_t MCP3x6x::analogRead(mux_t ch) {
307
309
return result.raw[(uint8_t)adcdata.channelid] = adcdata.value;
308
310
}
311
312
313
Serial.println("scan");
314
315
// ScanMode
316
for (size_t i = 0; i < sizeof(_channelID); i++) {
317
if (_channelID[i] == ch.raw) {
0 commit comments