summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordalmais2005-04-17 03:07:16 +0000
committerdalmais2005-04-17 03:07:16 +0000
commit2fbdcf0177c391b35c9b2426bdeef225c1c74cae (patch)
treeed4be03c5f5fc5075e56feed0dcdda174c02bd20
parent0fcaebc243f457973fcb1a83fe8a00705be72f20 (diff)
On fait marcher les 3 capteurs sharps et non plus le premier:
On met dans le tableau la variable compteur et non pas 0
-rw-r--r--n/es/src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/n/es/src/main.c b/n/es/src/main.c
index 76e3b67..c2ed84c 100644
--- a/n/es/src/main.c
+++ b/n/es/src/main.c
@@ -73,7 +73,7 @@ int main (void)
{
adc_start (compteur); // pin selectionnee
while(!adc_checkf()){}
- tableau_sharp[0]=adc_read();
+ tableau_sharp[compteur]=adc_read();
}
twi_update (tableau_sharp,6);