diff --git a/cores/esp8266/WString.cpp b/cores/esp8266/WString.cpp index 8cff99a217..0793633aee 100644 --- a/cores/esp8266/WString.cpp +++ b/cores/esp8266/WString.cpp @@ -435,6 +435,20 @@ StringSumHelper &operator +(const StringSumHelper &lhs, unsigned long num) { return a; } +StringSumHelper &operator +(const StringSumHelper &lhs, long long num) { + StringSumHelper &a = const_cast(lhs); + if (!a.concat(num)) + a.invalidate(); + return a; +} + +StringSumHelper &operator +(const StringSumHelper &lhs, unsigned long long num) { + StringSumHelper &a = const_cast(lhs); + if (!a.concat(num)) + a.invalidate(); + return a; +} + StringSumHelper &operator +(const StringSumHelper &lhs, float num) { StringSumHelper &a = const_cast(lhs); if (!a.concat(num))