X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=src%2Fdrivers%2Fao_ads124s0x.h;fp=src%2Fdrivers%2Fao_ads124s0x.h;h=c881ca57da6ed6554149dbb5854bbdb5de2ae04d;hp=42bdc45e78e1ef831aac57a2986d321d034083fe;hb=69bdb309f46a28803e93b08921720805b28b18a2;hpb=8cc418ed3b0df0e465f0af27c2255cb97294e6ce 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;