Browse Source

DataFlash: fixes to lib include and make the test smaller

master
Pat Hickey 13 years ago committed by Andrew Tridgell
parent
commit
8ffec83b73
  1. 1
      libraries/DataFlash/DataFlash.cpp
  2. 6
      libraries/DataFlash/examples/DataFlash_test/DataFlash_test.pde

1
libraries/DataFlash/DataFlash.cpp

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
* DataFlash.cpp - DataFlash log library generic code
*/
#include <FastSerial.h>
#include <stdint.h>
#include "DataFlash.h"

6
libraries/DataFlash/examples/DataFlash_test/DataFlash_test.pde

@ -52,7 +52,7 @@ void setup() @@ -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() @@ -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() @@ -119,4 +119,4 @@ void loop()
Serial.println("Test complete. Test will repeat in 20 seconds");
Serial.println("");
delay(20000);
}
}

Loading…
Cancel
Save