Arduino/LSM303Soft/LSM303Soft.cpp
// Note that this function will not work for reading TEMP_OUT_H_M and TEMP_OUT_L_M on the DLHC.
// To read those two registers, use readMagReg() instead.

Note that this function will not work for reading TEMP_OUT_H_M and TEMP_OUT_L_M on the DLHC.
To read those two registers, use readMagReg() instead.
Note that this function will not work for reading TEMP_OUT_H_M and TEMP_OUT_L_M on the DLHC . To read those two registers use readMagReg () instead .
byte LSM303Soft::readReg(int reg)
{
  if (_device == device_D || reg < CTRL_REG1_A)
  {
    return readMagReg(reg);
  }
  else
  {
    return readAccReg(reg);
  }
}
byte LSM303Soft :: readReg ( int reg ) { if ( _device == device_D || reg < CTRL_REG1_A ) { return readMagReg ( reg ) ; } else { return readAccReg ( reg ) ; } }
Note that this function will not work for reading TEMP_OUT_H_M and TEMP_OUT_L_M on the DLHC.
Note that this function will not work for reading TEMP_OUT_H_M and TEMP_OUT_L_M on the DLHC .
// mag address == acc_address for LSM303D, so it doesn't really matter which one we use.
 // Use readMagReg so it can translate OUT_[XYZ]_[HL]_M
