summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBdale Garbee <bdale@gag.com>2019-02-24 10:28:15 -0700
committerBdale Garbee <bdale@gag.com>2019-02-24 10:28:15 -0700
commit69bdb309f46a28803e93b08921720805b28b18a2 (patch)
treeb3621d28c0e8e011b38a91d5974cb8b10cd5be32 /src
parent8cc418ed3b0df0e465f0af27c2255cb97294e6ce (diff)
altos: fix ads124s0x data structure
Diffstat (limited to 'src')
-rw-r--r--src/drivers/ao_ads124s0x.h5
1 files changed, 1 insertions, 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;