Bladeren bron

Work around multi-line function limit in Arduino 1.6.7

dds
PaulStoffregen 8 jaren geleden
bovenliggende
commit
08a6367d03
1 gewijzigde bestanden met toevoegingen van 1 en 2 verwijderingen
  1. +1
    -2
      examples/HardwareTesting/SdCardTest/SdCardTest.ino

+ 1
- 2
examples/HardwareTesting/SdCardTest/SdCardTest.ino Bestand weergeven

@@ -262,8 +262,7 @@ unsigned long maximum(unsigned long a, unsigned long b,
}


void reportSpeed(unsigned int numFiles, unsigned long blockCount,
unsigned long usecTotal, unsigned long usecMax)
void reportSpeed(unsigned int numFiles, unsigned long blockCount, unsigned long usecTotal, unsigned long usecMax)
{
float bytesPerSecond = (float)(blockCount * 512 * numFiles) / usecTotal;
Serial.print(" Overall speed = ");

Laden…
Annuleren
Opslaan