aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2010-06-16 13:17:18 -0400
committerbnewbold <bnewbold@robocracy.org>2010-06-16 13:17:18 -0400
commitcabb71f9425874a9ebd84c3d62656ef513ecfe20 (patch)
tree7b18e5e8a11bb00421640d98f6a0fe5cb4e28770 /examples
parent6e5326e0dd2f3f39ebc0cf14f1923a5f17dd2426 (diff)
downloadlibrambutan-cabb71f9425874a9ebd84c3d62656ef513ecfe20.tar.gz
librambutan-cabb71f9425874a9ebd84c3d62656ef513ecfe20.zip
fixed QA test (pulldown)
Diffstat (limited to 'examples')
-rw-r--r--examples/test-session.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/test-session.cpp b/examples/test-session.cpp
index bd58866..4f09591 100644
--- a/examples/test-session.cpp
+++ b/examples/test-session.cpp
@@ -367,7 +367,7 @@ void loop() {
digitalWrite(LED_PIN, 0);
// make sure to skip the TX/RX headers
for(int i = 2; i<NUM_GPIO; i++) {
- pinMode(i, INPUT);
+ pinMode(i, INPUT_PULLDOWN);
gpio_state[i] = (uint8)digitalRead(i);
}
while(!COMM.available()) {
@@ -450,7 +450,7 @@ void loop() {
while(digitalRead(i) == 1) continue;
for(int j=0; j<NUM_GPIO; j++) {
if(digitalRead(j) && j!=i) {
- COMM.print(": FAIL with D");
+ COMM.print(": FAIL ########################### D");
COMM.println(j, DEC);
break;
}