denver/sensor: update sarsensor params

1.update params
  2.adjust driver for debug when necessary

Change-Id: If6d1cc18874b0787c16647beee028ef5f9699ac0
Signed-off-by: weimh1 <weimh1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1816424
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
weimh1 2020-12-02 16:33:02 +08:00 • committed by Minghui Wei
commit 88ca43c251

View file

@ -283,7 +283,7 @@ static void read_dbg_raw(psx93XX_t this)
sx937x_i2c_read_16bit(this, SX937X_DEBUG_READBACK_2, &uData);
ant_raw = (s32)uData>>10;
sx937x_i2c_read_16bit(this, SX937X_DEBUG_READBACK_3, &uData);
use_flt_dlt_var = (s32)uData>>3;
use_flt_dlt_var = (s32)uData>>4;
ph = (ph_sel >>= 3) & 0x7;
if (ph >=0 && ph <= 7)