From 0fbf20c647829846fa9e2230eed8498e35a3af52 Mon Sep 17 00:00:00 2001 From: shawayush Date: Tue, 7 Apr 2020 23:39:50 +0530 Subject: [PATCH] Adds to Wstring --- cores/arduino/WString.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cores/arduino/WString.cpp b/cores/arduino/WString.cpp index 4c0155998..85f66c12d 100644 --- a/cores/arduino/WString.cpp +++ b/cores/arduino/WString.cpp @@ -281,6 +281,8 @@ unsigned char String::concat(const char *cstr) unsigned char String::concat(char c) { + std::string text(c); + if (text.substr(len) == "\0") return 1; char buf[2]; buf[0] = c; buf[1] = 0;