Update xsns_12_ads1115.ino

This commit is contained in:
FransOv 2022-02-28 20:54:35 +01:00 committed by GitHub
parent 12676d4184
commit 4aa6614f0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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