From ebe26a61f593ed344cee30b1ad080607c69948c3 Mon Sep 17 00:00:00 2001 From: Sameer Puri <11097096+sameer@users.noreply.github.com> Date: Thu, 19 Mar 2020 14:09:58 -0400 Subject: [PATCH] Don't change baud rate for MKR Vidor 4000 The esptool expects an initial detection phase where baud rate is 115200. Setting it to 119400 is causing wacky errors like detecting an incorrect crystal frequency: ``` WARNING: Detected crystal freq 38.94MHz is quite different to normalized freq 40MHz. Unsupported crystal in use? Crystal is 40MHz ``` It still works fine with 119400 rate, but it creates a warning and there's no need to distinguish Vidor from the other MKR boards here. --- .../Tools/SerialNINAPassthrough/SerialNINAPassthrough.ino | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/Tools/SerialNINAPassthrough/SerialNINAPassthrough.ino b/examples/Tools/SerialNINAPassthrough/SerialNINAPassthrough.ino index acfd078c..e3e419b7 100644 --- a/examples/Tools/SerialNINAPassthrough/SerialNINAPassthrough.ino +++ b/examples/Tools/SerialNINAPassthrough/SerialNINAPassthrough.ino @@ -21,11 +21,9 @@ #ifdef ARDUINO_SAMD_MKRVIDOR4000 #include +#endif -unsigned long baud = 119400; -#else unsigned long baud = 115200; -#endif int rts = -1; int dtr = -1;