From 69bdb309f46a28803e93b08921720805b28b18a2 Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Sun, 24 Feb 2019 10:28:15 -0700 Subject: [PATCH] altos: fix ads124s0x data structure --- src/drivers/ao_ads124s0x.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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; -- 2.30.2