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