This commit is contained in:
Yuri Trikoz
2020-10-18 10:17:24 +03:00
parent 281f338f97
commit 8778de1ffd
4 changed files with 26 additions and 20 deletions

View File

@@ -2,7 +2,7 @@
#include <Arduino.h>
String getErrorLevelStr(ErrorLevel_t level);
#include "Utils/StringUtils.h"
class Error : public Printable {
public:
@@ -37,7 +37,7 @@ class Error : public Printable {
const String toString() const {
char buf[128];
sprintf(buf, "[%s] %s", getErrorLevelStr(_level).c_str(), _message);
sprintf(buf, "[%c] %s", getErrorLevelStr(_level), _message);
return String(buf);
}