altos: fix ads124s0x data structure
authorBdale Garbee <bdale@gag.com>
Sun, 24 Feb 2019 17:28:15 +0000 (10:28 -0700)
committerBdale Garbee <bdale@gag.com>
Sun, 24 Feb 2019 17:28:15 +0000 (10:28 -0700)
src/drivers/ao_ads124s0x.h

index 42bdc45e78e1ef831aac57a2986d321d034083fe..c881ca57da6ed6554149dbb5854bbdb5de2ae04d 100644 (file)
 #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;