diff options
author | Bdale Garbee <bdale@gag.com> | 2019-02-24 10:28:15 -0700 |
---|---|---|
committer | Bdale Garbee <bdale@gag.com> | 2019-02-24 10:28:15 -0700 |
commit | 69bdb309f46a28803e93b08921720805b28b18a2 (patch) | |
tree | b3621d28c0e8e011b38a91d5974cb8b10cd5be32 /src | |
parent | 8cc418ed3b0df0e465f0af27c2255cb97294e6ce (diff) |
altos: fix ads124s0x data structure
Diffstat (limited to 'src')
-rw-r--r-- | src/drivers/ao_ads124s0x.h | 5 |
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; |