浏览代码

cosmetic change

I am tired of seeing Serial.begin(9600); where 9600 is not going to be
used at all. Can Serial.begin(Serial.baud()); be acceptable?
dds
robsoles 10 年前
父节点
当前提交
c34a7ab254
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      examples/MonoPeakMeterAnalog/MonoPeakMeterAnalog.ino
  2. +1
    -1
      examples/StereoPeakMeter/StereoPeakMeter.ino

+ 1
- 1
examples/MonoPeakMeterAnalog/MonoPeakMeterAnalog.ino 查看文件

@@ -22,7 +22,7 @@ AudioConnection c2(audioInput,audioOutput);

void setup() {
AudioMemory(4);
Serial.begin(1);
Serial.begin(Serial.baud());
}

elapsedMillis fps;

+ 1
- 1
examples/StereoPeakMeter/StereoPeakMeter.ino 查看文件

@@ -29,7 +29,7 @@ void setup() {
audioShield.inputSelect(myInput);
audioShield.volume(75);
audioShield.unmuteLineout();
Serial.begin(1);
Serial.begin(Serial.baud());
}

elapsedMillis fps;

正在加载...
取消
保存