Browse Source

fix some bug

master
zhaohe 2 years ago
parent
commit
550e529fda
  1. 2
      components/zcan_module/zcan_basic_order_module.cpp

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

Loading…
Cancel
Save