From 8ffec83b73cb11b490e86cd7a34611ddb8502721 Mon Sep 17 00:00:00 2001 From: Pat Hickey Date: Wed, 5 Sep 2012 13:23:20 -0700 Subject: [PATCH] DataFlash: fixes to lib include and make the test smaller --- libraries/DataFlash/DataFlash.cpp | 1 - .../DataFlash/examples/DataFlash_test/DataFlash_test.pde | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/libraries/DataFlash/DataFlash.cpp b/libraries/DataFlash/DataFlash.cpp index 79ada0f399..ff67a911d6 100644 --- a/libraries/DataFlash/DataFlash.cpp +++ b/libraries/DataFlash/DataFlash.cpp @@ -3,7 +3,6 @@ * DataFlash.cpp - DataFlash log library generic code */ -#include #include #include "DataFlash.h" diff --git a/libraries/DataFlash/examples/DataFlash_test/DataFlash_test.pde b/libraries/DataFlash/examples/DataFlash_test/DataFlash_test.pde index f7aa93e1a0..ffd517535e 100644 --- a/libraries/DataFlash/examples/DataFlash_test/DataFlash_test.pde +++ b/libraries/DataFlash/examples/DataFlash_test/DataFlash_test.pde @@ -52,7 +52,7 @@ void setup() Serial.println("After testing perform erase before using DataFlash for logging!"); Serial.println(""); Serial.println("Writing to flash... wait..."); - for (int i = 0; i < 1000; i++) { // Write 1000 packets... + for (int i = 0; i < 40; i++) { // Write 1000 packets... // We write packets of binary data... (without worry about nothing more) DataFlash.WriteByte(HEAD_BYTE1); DataFlash.WriteByte(HEAD_BYTE2); @@ -79,7 +79,7 @@ void loop() DataFlash.StartRead(1); // We start reading from page 1 - for (i = 0; i < 200; i++) { // Read 200 packets... + for (i = 0; i < 40; i++) { // Read 200 packets... tmp_byte1 = DataFlash.ReadByte(); tmp_byte2 = DataFlash.ReadByte(); @@ -119,4 +119,4 @@ void loop() Serial.println("Test complete. Test will repeat in 20 seconds"); Serial.println(""); delay(20000); -} \ No newline at end of file +}