Browse Source

update

master
zhaohe 2 years ago
parent
commit
b2d320b950
  1. 2
      src/iflytop/components/zcanreceiver/zcanhost.cpp
  2. 1
      src/iflytop/core/error/error_code.cpp
  3. 1
      src/iflytop/core/error/error_code.hpp

2
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;

1
src/iflytop/core/error/error_code.cpp

@ -19,6 +19,7 @@ using namespace std;
// kuser_not_exist
static vector<error_code_desc_t> ecode_desc_set = {
{kce, kovertime, "overtime"},
{kce, kfail, "fail"},
{kce, knoack, "noack"},
{kce, kdevice_offline, "kdevice_offline"},
{kce, kparse_json_err, "kparse_json_err"},

1
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,

Loading…
Cancel
Save