File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
examples/FirebaseMorse_ESP8266 Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -71,8 +71,7 @@ void loop() {
71
71
}
72
72
int upTime = millis () - upStarted;
73
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.
74
+ // A letter break is 3 * the length of a short (.).
76
75
if (currentLetter > morseToCharSize || morseToChar[currentLetter] == ' \0 ' ) {
77
76
Serial.println (" Invalid morse char, ignoring" );
78
77
} else {
@@ -81,9 +80,7 @@ void loop() {
81
80
Serial.println (" Listening for new letter." );
82
81
currentLetter = B1;
83
82
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.
83
+ if (upTime > shortMillis * 7 ) {
87
84
currentMessage += " " ;
88
85
}
89
86
} // else the upTime < shortMillis we attribute to button bounce.
You can’t perform that action at this time.
0 commit comments