Skip to content

Commit

Permalink
Change Serial baud rate from 74880 to 115200 because Linux doesn't su…
Browse files Browse the repository at this point in the history
…pport the ESP8266 default
  • Loading branch information
bxparks committed Apr 6, 2018
1 parent 2d7bc72 commit ec7c482
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -250,8 +250,8 @@ testingF(CustomTestAgain, example_test) {
}
void setup() {
Serial.begin(74880); // 74880 is the default for some ESP8266 boards
while (! Serial); // Wait until Serial is ready - Leonardo
Serial.begin(115200);
while (! Serial); // Wait until Serial is ready - Leonardo/Micro
TestRunner::exclude("*");
TestRunner::include("looping*");
Expand Down
6 changes: 3 additions & 3 deletions examples/advanced/advanced.ino
Expand Up @@ -54,16 +54,16 @@ testingF(MyTestAgain, again) {
}

void setup() {
Serial.begin(74880); // 74880 is default for some ESP8266 boards
while (!Serial); // for the Arduino Leonardo/Micro only
delay(1000); // wait for stability on some boards to prevent garbage Serial
Serial.begin(115200); // ESP8266 default of 74880 not supported on Linux
while (!Serial); // for the Arduino Leonardo/Micro only

TestRunner::setVerbosity(Verbosity::kAll);
}

void loop() {
// Should get:
// TestRunner summary:
// 5 passed, 1 failed, 2 skipped, 0 timed out, out of 8 test(s).
// 3 passed, 1 failed, 0 skipped, 0 timed out, out of 8 test(s).
TestRunner::run();
}
4 changes: 2 additions & 2 deletions examples/basic/basic.ino
Expand Up @@ -16,9 +16,9 @@ test(incorrect) {
}

void setup() {
Serial.begin(74880); // 74880 is default for some ESP8266 boards
while(!Serial); // for the Arduino Leonardo/Micro only
delay(1000); // wait for stability on some boards to prevent garbage Serial
Serial.begin(115200); // ESP8266 default of 74880 not supported on Linux
while(!Serial); // for the Arduino Leonardo/Micro only
}

void loop() {
Expand Down
4 changes: 2 additions & 2 deletions examples/continuous/continuous.ino
Expand Up @@ -21,9 +21,9 @@ testing(continuous) {
}

void setup() {
Serial.begin(74880); // 74880 is default for some ESP8266 boards
while(!Serial); // for the Arduino Leonardo/Micro only
delay(1000); // wait for stability on some boards to prevent garbage Serial
Serial.begin(115200); // ESP8266 default of 74880 not supported on Linux
while(!Serial); // for the Arduino Leonardo/Micro only
}

void loop() {
Expand Down
4 changes: 2 additions & 2 deletions examples/filter/filter.ino
Expand Up @@ -15,9 +15,9 @@ testing(crypto_rng) { pass(); }
test(crypto_sha256) { pass(); }

void setup() {
Serial.begin(74880); // 74880 is default for some ESP8266 boards
while(!Serial); // for the Arduino Leonardo/Micro only
delay(1000); // wait for stability on some boards to prevent garbage Serial
Serial.begin(115200); // ESP8266 default of 74880 not supported on Linux
while(!Serial); // for the Arduino Leonardo/Micro only

// all tests named net_ - something, except net_ftp
TestRunner::exclude("*");
Expand Down
4 changes: 2 additions & 2 deletions examples/meta_asserts/meta_asserts.ino
Expand Up @@ -168,9 +168,9 @@ testing(slow_expire_monitor) {
}

void setup() {
Serial.begin(74880); // 74880 is default for some ESP8266 boards
while(!Serial); // for the Arduino Leonardo/Micro only
delay(1000); // wait for stability on some boards to prevent garbage Serial
Serial.begin(115200); // ESP8266 default of 74880 not supported on Linux
while(!Serial); // for the Arduino Leonardo/Micro only
}

void loop() {
Expand Down

0 comments on commit ec7c482

Please sign in to comment.