We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent660059c commit06f7790Copy full SHA for 06f7790
examples/FirebaseMorse_ESP8266/FirebaseMorse_ESP8266.ino
@@ -71,8 +71,7 @@ void loop() {
71
}
72
int upTime =millis() - upStarted;
73
if (upTime > shortMillis*3) {
74
-// A letter break is 3 * the length of a short (.). We give a lot of
75
-// lee way for poor morse-coders.
+// A letter break is 3 * the length of a short (.).
76
if (currentLetter > morseToCharSize || morseToChar[currentLetter] =='\0') {
77
Serial.println("Invalid morse char, ignoring");
78
}else {
@@ -81,9 +80,7 @@ void loop() {
81
80
Serial.println("Listening for new letter.");
82
currentLetter = B1;
83
84
-if (upTime > shortMillis *5) {
85
-// A word break is 7 * the length of a short(.). We are being generous and
86
-// accepting anything over 5.
+if (upTime > shortMillis *7) {
87
currentMessage +="";
88
89
}// else the upTime < shortMillis we attribute to button bounce.