From 7d03bf6f3d7b4ffe2a73c78b86567f5fe0d59607 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Thu, 21 Mar 2024 22:57:31 +0800 Subject: [PATCH] add some log --- src/iflytop/components/zcanreceiver/zcanhost.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/iflytop/components/zcanreceiver/zcanhost.cpp b/src/iflytop/components/zcanreceiver/zcanhost.cpp index 6b2a9b1..2310319 100644 --- a/src/iflytop/components/zcanreceiver/zcanhost.cpp +++ b/src/iflytop/components/zcanreceiver/zcanhost.cpp @@ -273,13 +273,14 @@ int32_t ZCanHost::readio(int id, bool& value) { return 0; } int32_t ZCanHost::writeio(int id, bool value) { + logger->info("writeio {} {}", id, value); shared_ptr cmd = make_shared(); cmd->cmdid = 2; cmd->subcmdid = 0; cmd->data[0] = id; cmd->data[1] = value; cmd->len = 2; - auto rx = m_zcanReceiverHost->sendcmdblock(cmd, 100); + auto rx = m_zcanReceiverHost->sendcmdblock(cmd, 300); if (rx == nullptr) { return err::zecode(err::knoack); }