Explorar o código

Update util.cpp

Correct "is_whitespace_or_nl": change 'r' to '\r'.
Keith Spitz %!s(int64=5) %!d(string=hai) anos
pai
achega
952a24b45d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)