fix bug in getting the calibration result master
authorPeter Li <a0220410@ti.com>
Mon, 24 Apr 2017 10:00:44 +0000 (18:00 +0800)
committerPeter Li <a0220410@ti.com>
Mon, 24 Apr 2017 10:00:44 +0000 (18:00 +0800)
drv2625.c

index fab861c2e0b3e9ea63703dff4d2e636920cf03f0..a18711a44d6a42f3d758275d62cc0b4f32a92859 100755 (executable)
--- a/drv2625.c
+++ b/drv2625.c
@@ -304,7 +304,7 @@ static int drv2625_get_calibration_result(struct drv2625_data *pDRV2625, unsigne
                        goto end;
                pDRV2625->mAutoCalResult.mnCalBemf = nResult;
 
-               nResult = drv2625_reg_read(pDRV2625, DRV2625_REG_CAL_COMP) & BEMFGAIN_MASK;
+               nResult = drv2625_reg_read(pDRV2625, DRV2624_REG_LOOP_CONTROL) & BEMFGAIN_MASK;
                if (nResult < 0)
                        goto end;
                pDRV2625->mAutoCalResult.mnCalGain = nResult;