From 550e529fda99c98acc608b2a18e4239bafd1f31b Mon Sep 17 00:00:00 2001 From: zhaohe Date: Tue, 15 Aug 2023 16:24:34 +0800 Subject: [PATCH] fix some bug --- components/zcan_module/zcan_basic_order_module.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/zcan_module/zcan_basic_order_module.cpp b/components/zcan_module/zcan_basic_order_module.cpp index a703bc0..5deed0a 100644 --- a/components/zcan_module/zcan_basic_order_module.cpp +++ b/components/zcan_module/zcan_basic_order_module.cpp @@ -78,7 +78,7 @@ void ZCanBasicOrderModule::onRceivePacket(CanPacketRxBuffer* rxbuf, uint8_t* pac */ uint8_t id = cmdheader->data[0]; int32_t val = 0; - if (m_readfn && m_readadcval(id, val)) { + if (m_readadcval && m_readadcval(id, val)) { // uint8_t txbuff[2 + 4] = {0}; txbuff[0] = id;