aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2011-08-30 15:47:28 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2011-08-30 15:47:28 -0400
commit32a6949c63a0dc302b5f6299dbcc2a5ce233a059 (patch)
tree6c7b4c2768f6db87203349d9368bc2e550626d51 /examples
parentfec92f0daf605c9fce7bb0ab459585214011381b (diff)
downloadlibrambutan-32a6949c63a0dc302b5f6299dbcc2a5ce233a059.tar.gz
librambutan-32a6949c63a0dc302b5f6299dbcc2a5ce233a059.zip
fsmc-stress-test.cpp: Eliminating unnecessary variable.
Diffstat (limited to 'examples')
-rw-r--r--examples/fsmc-stress-test.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/fsmc-stress-test.cpp b/examples/fsmc-stress-test.cpp
index 0cb9d30..6e986b3 100644
--- a/examples/fsmc-stress-test.cpp
+++ b/examples/fsmc-stress-test.cpp
@@ -104,14 +104,12 @@ bool simple_roundtrip(void);
void loop() {
uint32 last;
- bool ok = true;
bool (*test)(void) = stress_test;
last = millis();
while (true) {
bool result = test();
- ok = ok && result;
- if (!ok) {
+ if (!result) {
SerialUSB.println("Halting due to error.");
throb();
} else {