From 56543e221208090c57ba8448b751c454a83d4c86 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Fri, 11 Jul 2025 20:26:45 +0800 Subject: [PATCH] hide zcanreceiver log --- zcanreceiver/zcanreceiver.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/zcanreceiver/zcanreceiver.cpp b/zcanreceiver/zcanreceiver.cpp index 427a9d5..4498889 100644 --- a/zcanreceiver/zcanreceiver.cpp +++ b/zcanreceiver/zcanreceiver.cpp @@ -253,14 +253,14 @@ void zcanbus_reg_on_connected_listener(zcanbus_on_connected_t connectedlistener) bool zcanbus_send_packet(uint8_t to, uint8_t *packet, size_t len) { return zcanbus_send_packet(to, packet, len, OVER_TIME_MS); } -static char *hex2str(uint8_t *data, size_t len) { - static char buf[200]; - memset(buf, 0, sizeof(buf)); - for (size_t i = 0; i < len; i++) { - sprintf(buf + i * 2, "%02x", data[i]); - } - return buf; -} +// static char *hex2str(uint8_t *data, size_t len) { +// static char buf[200]; +// memset(buf, 0, sizeof(buf)); +// for (size_t i = 0; i < len; i++) { +// sprintf(buf + i * 2, "%02x", data[i]); +// } +// return buf; +// } bool zcanbus_send_packet(uint8_t to, uint8_t *packet, size_t len, int overtimems) { // ZLOGI(TAG, "sendPacket to:%d, %s(%d)", to, hex2str(packet, len), len);