diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2011-08-30 15:47:28 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2011-08-30 15:47:28 -0400 |
commit | 32a6949c63a0dc302b5f6299dbcc2a5ce233a059 (patch) | |
tree | 6c7b4c2768f6db87203349d9368bc2e550626d51 | |
parent | fec92f0daf605c9fce7bb0ab459585214011381b (diff) | |
download | librambutan-32a6949c63a0dc302b5f6299dbcc2a5ce233a059.tar.gz librambutan-32a6949c63a0dc302b5f6299dbcc2a5ce233a059.zip |
fsmc-stress-test.cpp: Eliminating unnecessary variable.
-rw-r--r-- | examples/fsmc-stress-test.cpp | 4 |
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 { |