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 42bdc45..c881ca5 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;