瀏覽代碼

Work around multi-line function limit in Arduino 1.6.7

dds
PaulStoffregen 8 年之前
父節點
當前提交
08a6367d03
共有 1 個檔案被更改,包括 1 行新增2 行删除
  1. +1
    -2
      examples/HardwareTesting/SdCardTest/SdCardTest.ino

+ 1
- 2
examples/HardwareTesting/SdCardTest/SdCardTest.ino 查看文件

@@ -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 = ");

Loading…
取消
儲存