Skip to content
Snippets Groups Projects
Commit 33e4633c authored by Daniel Joseph Antrim's avatar Daniel Joseph Antrim
Browse files

remove debug printouts

parent d3500c93
Branches
Tags
6 merge requests!308Bring main and devel back in sync,!300playing with fixing divergence between devel and main,!287Updates for Julabo Chiller,!285Julabo Chiller Added with Fixed Pipeline Compatibility,!269Merge devel into main: largest change is code formatting checker and enforcement in CI,!225Add support for 4-channel 12-bit ADC ADS1015
......@@ -236,8 +236,6 @@ double ADS1015::readDifferentialP2N3() {
double ADS1015::readDifferential(DifferentialConfig diff_config) {
int16_t counts = readCountDifferential(diff_config);
double multiplier = m_fullscale_range / m_maxValue;
logger(logINFO) << __PRETTY_FUNCTION__ << " counts = " << counts
<< ", multiplier = " << multiplier;
return counts * multiplier;
}
......@@ -284,11 +282,8 @@ int16_t ADS1015::readCountDifferential(DifferentialConfig diff_config) {
uint16_t raw_result =
m_com->read_reg16(static_cast<uint16_t>(Address::POINTER_CONVERT));
logger(logINFO) << __PRETTY_FUNCTION__ << " raw_result = " << raw_result;
// ADS1015 writes 12-bit results shifted by four, so remove the shift
raw_result = raw_result >> 4;
logger(logINFO) << __PRETTY_FUNCTION__
<< " shifted raw_result = " << raw_result;
// differential measurements are signed, so check the sign bit
if (raw_result > 0x07FF) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment