Browse Source

Merge pull request #2056 from BoCoKeith/patch-1

Correct bug in util.cpp is_whitespace_or_nl function.
DRracer 4 years ago
parent
commit
e43e89421c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Firmware/util.cpp

+ 1 - 1
Firmware/util.cpp

@@ -27,7 +27,7 @@ const char STR_REVISION_RC   [] PROGMEM = "rc";
 
 inline bool is_whitespace_or_nl(char c)
 {
-    return c == ' ' || c == '\t' || c == '\n' || c == 'r';
+    return c == ' ' || c == '\t' || c == '\n' || c == '\r';
 }
 
 inline bool is_whitespace_or_nl_or_eol(char c)