From: Bdale Garbee Date: Sun, 24 Feb 2019 17:28:15 +0000 (-0700) Subject: altos: fix ads124s0x data structure X-Git-Tag: 1.9.1~1^2~113 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=69bdb309f46a28803e93b08921720805b28b18a2 altos: fix ads124s0x data structure --- diff --git a/src/drivers/ao_ads124s0x.h b/src/drivers/ao_ads124s0x.h index 42bdc45e..c881ca57 100644 --- a/src/drivers/ao_ads124s0x.h +++ b/src/drivers/ao_ads124s0x.h @@ -58,10 +58,7 @@ #define AO_ADS124S0X_GPIOCON 0x11 struct ao_ads124s0x_sample { - int32_t ain0; - int32_t ain1; - int32_t ain2; - int32_t ain3; + int32_t ain[AO_ADS124S0X_CHANNELS]; }; extern struct ao_ads124s0x_sample ao_ads124s0x_current;