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 6d787a0 commit 5968796Copy full SHA for 5968796
src/SparkFun_ADS1219.cpp
@@ -187,7 +187,7 @@ bool SfeADS1219Driver::getConfigurationRegister(sfe_ads1219_reg_cfg_t &config)
187
/// @return True if successful, false otherwise.
188
bool SfeADS1219Driver::setConfigurationRegister(sfe_ads1219_reg_cfg_t config)
189
{
190
- _adcGain = config.gain; // Update the local copy of the gain for voltage conversion
+ _adcGain = (ads1219_gain_config_t)config.gain; // Update the local copy of the gain for voltage conversion
191
return (_theBus->writeRegisterByte(kSfeADS1219RegConfigWrite, config.byte) == kSTkErrOk); // Write the config register
192
}
193
0 commit comments