src/AHTxx.cpp
/**************************************************************/
/*
  _getCalibration(): Read calibration bits from status register

  NOTE:
  - 0x08=loaded, 0x00=not loaded, 0xFF=I2C error
  - calibration status check should only be performed at power-up,
    rechecking is not required during data collection
*/
Read calibration bits from status register
NOTE:
0x08=loaded, 0x00=not loaded, 0xFF=I2C error
calibration status check should only be performed at power-up,
rechecking is not required during data collection
Read calibration bits from status register NOTE : 0x08 = loaded 0x00 = not loaded 0xFF = I2C error calibration status check should only be performed at power - up rechecking is not required during data collection
uint8_t AHTxx::_getCalibration() {
  uint8_t value = _readStatusRegister();
  if (value != AHTXX_ERROR) {
	return (value & AHTXX_STATUS_CTRL_CAL_ON);  
  }
  return AHTXX_ERROR;  
}
uint8_t AHTxx :: _getCalibration ( ) { uint8_t value = _readStatusRegister ( ) ; if ( value != AHTXX_ERROR ) { return ( value & AHTXX_STATUS_CTRL_CAL_ON ) ; } return AHTXX_ERROR ; }
_getCalibration(): Read calibration bits from status register
NOTE:
 0x08=loaded, 0x00=not loaded, 0xFF=I2C error
 calibration status check should only be performed at power-up,
rechecking is not required during data collection
_getCalibration () : Read calibration bits from status register NOTE : 0x08 = loaded 0x00 = not loaded 0xFF = I2C error calibration status check should only be performed at power - up rechecking is not required during data collection
//0x08=loaded, 0x00=not loaded //collision on I2C bus, sensor didn't return ACK