Update xsns_12_ads1115.ino

This commit is contained in:
FransOv 2022-02-28 20:58:04 +01:00 committed by GitHub
parent 4aa6614f0c
commit 6ea2d0c693
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 + (03000 * channel));
config |= (ADS1115_REG_CONFIG_MUX_DIFF_0_1 + (0x3000 * channel));
}
// Write config register to the ADC