Pārlūkot izejas kodu

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 pirms 11 gadiem
vecāks
revīzija
c34a7ab254
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +1
    -1
      examples/MonoPeakMeterAnalog/MonoPeakMeterAnalog.ino
  2. +1
    -1
      examples/StereoPeakMeter/StereoPeakMeter.ino

+ 1
- 1
examples/MonoPeakMeterAnalog/MonoPeakMeterAnalog.ino Parādīt failu

@@ -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 Parādīt failu

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

elapsedMillis fps;

Notiek ielāde…
Atcelt
Saglabāt