diff --git a/src/iflytop/components/zcanreceiver/zcanhost.cpp b/src/iflytop/components/zcanreceiver/zcanhost.cpp index f682711..d24fdf8 100644 --- a/src/iflytop/components/zcanreceiver/zcanhost.cpp +++ b/src/iflytop/components/zcanreceiver/zcanhost.cpp @@ -67,7 +67,7 @@ void ZCanHost::initialize(string can_if_name, int baudrate, bool enablLoopback) }; m_cmdMap["sleep_ms"] = [this](int argc, char** argv, string& retval) { CHECK_ARGC_NUM(1); - uint8_t ms = atoi(argv[1]); + int32_t ms = atoi(argv[1]); logger->info("sleep_ms:{}", ms); std::this_thread::sleep_for(std::chrono::milliseconds(ms)); return true; diff --git a/src/iflytop/core/error/error_code.cpp b/src/iflytop/core/error/error_code.cpp index 292dcfc..0ac7298 100644 --- a/src/iflytop/core/error/error_code.cpp +++ b/src/iflytop/core/error/error_code.cpp @@ -19,6 +19,7 @@ using namespace std; // kuser_not_exist static vector ecode_desc_set = { {kce, kovertime, "overtime"}, + {kce, kfail, "fail"}, {kce, knoack, "noack"}, {kce, kdevice_offline, "kdevice_offline"}, {kce, kparse_json_err, "kparse_json_err"}, diff --git a/src/iflytop/core/error/error_code.hpp b/src/iflytop/core/error/error_code.hpp index de59acd..b38b37a 100644 --- a/src/iflytop/core/error/error_code.hpp +++ b/src/iflytop/core/error/error_code.hpp @@ -18,6 +18,7 @@ namespace err { using namespace std; typedef enum { kovertime = 1, + kfail, knoack, kdevice_offline, kparse_json_err,