projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cc418e
)
altos: fix ads124s0x data structure
author
Bdale Garbee
<bdale@gag.com>
Sun, 24 Feb 2019 17:28:15 +0000
(10:28 -0700)
committer
Bdale Garbee
<bdale@gag.com>
Sun, 24 Feb 2019 17:28:15 +0000
(10:28 -0700)
src/drivers/ao_ads124s0x.h
patch
|
blob
|
history
diff --git
a/src/drivers/ao_ads124s0x.h
b/src/drivers/ao_ads124s0x.h
index 42bdc45e78e1ef831aac57a2986d321d034083fe..c881ca57da6ed6554149dbb5854bbdb5de2ae04d 100644
(file)
--- 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;