From b2d320b95091d412071bc7ed3d860d88e3cf4fbe Mon Sep 17 00:00:00 2001 From: zhaohe Date: Tue, 15 Aug 2023 13:59:55 +0800 Subject: [PATCH] update --- src/iflytop/components/zcanreceiver/zcanhost.cpp | 2 +- src/iflytop/core/error/error_code.cpp | 1 + src/iflytop/core/error/error_code.hpp | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) 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,