From 7d091d3687cef4b6e619dc44700ecb46bc20fa41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Gie=C3=9Fel?= Date: Tue, 14 Jan 2025 17:20:48 +0100 Subject: [PATCH] Fix getCurrent and getGain. Added 0 to TIA_GAIN array to output correct Gain value --- LMP91000.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LMP91000.h b/LMP91000.h index 5613e1e..a25ce31 100755 --- a/LMP91000.h +++ b/LMP91000.h @@ -110,7 +110,7 @@ const uint8_t LMP91000_WRITE_UNLOCK=0x00; const uint8_t LMP91000_NOT_PRESENT=0xA8; // arbitrary library status code -const double TIA_GAIN[] = {2750,3500,7000,14000,35000,120000,350000}; +const double TIA_GAIN[] = {0,2750,3500,7000,14000,35000,120000,350000}; const double TIA_BIAS[] = {0, 0.01, 0.02, 0.04, 0.06, 0.08, 0.1, 0.12, 0.14, 0.16, 0.18, 0.2, 0.22, 0.24}; const uint8_t NUM_TIA_BIAS = 14;