From bbf7d3aa14e4b3575d82c9d37bcec5d051b765c0 Mon Sep 17 00:00:00 2001 From: Daniel Thompson Date: Fri, 10 Sep 2021 21:17:14 +0100 Subject: [PATCH] drivers: hrs3300: Reduce HGAIN to x8 Experimentally drop the HGAIN to x8. Currently the evidence base for this change is a little weak but it doesn't seem to be *worse* than what we have now. Therefore I hope the wasp-os users will forgive me for using them as guinea pigs! Signed-off-by: Daniel Thompson --- wasp/drivers/hrs3300.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wasp/drivers/hrs3300.py b/wasp/drivers/hrs3300.py index 83f716b..80c8df0 100644 --- a/wasp/drivers/hrs3300.py +++ b/wasp/drivers/hrs3300.py @@ -42,7 +42,8 @@ class HRS3300: w(_RES, 0x88) # 64x gain - w(_HGAIN, 0x10) + #w(_HGAIN, 0x10) + w(_HGAIN, 0x03) def read_reg(self, addr): return self._i2c.readfrom_mem(_I2CADDR, addr, 1)[0]