mirror of https://github.com/arendst/Tasmota.git
Update xsns_12_ads1115.ino
This commit is contained in:
parent
12676d4184
commit
4aa6614f0c
|
@ -147,7 +147,7 @@ void Ads1115StartComparator(uint8_t channel, uint16_t mode)
|
|||
if (Ads1115.channels == ADS1115_SINGLE_CHANNELS) {
|
||||
config |= (ADS1115_REG_CONFIG_MUX_SINGLE_0 + (0x1000 * channel));
|
||||
} else {
|
||||
config |= (ADS1115_REG_CONFIG_MUX_DIFF_0_1 + (0x1000 * channel));
|
||||
config |= (ADS1115_REG_CONFIG_MUX_DIFF_0_1 + (03000 * channel));
|
||||
}
|
||||
|
||||
// Write config register to the ADC
|
||||
|
|
Loading…
Reference in New Issue