From 1b8b60c5441739294baa7016251349797c69a4ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Al=D0=B5x=D0=B0nder=20Lysik=D0=BEv?= <alexander.lysikov@demlabs.net> Date: Mon, 1 Jul 2019 13:25:21 +0500 Subject: [PATCH] fixed spelling error --- dap_stream_ch_chain_net.c | 4 ++-- dap_stream_ch_chain_net_pkt.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dap_stream_ch_chain_net.c b/dap_stream_ch_chain_net.c index 2462e99..2a528cc 100755 --- a/dap_stream_ch_chain_net.c +++ b/dap_stream_ch_chain_net.c @@ -182,13 +182,13 @@ void s_stream_ch_packet_in(dap_stream_ch_t* a_ch, void* a_arg) size_t l_ch_chain_net_pkt_data_size = l_ch_pkt->hdr.size - sizeof(dap_stream_ch_chain_net_pkt_hdr_t); switch (l_ch_pkt->hdr.type) { case DAP_STREAM_CH_CHAIN_NET_PKT_TYPE_DBG: { - dap_stream_ch_chain_net_pkt_write(a_ch, DAP_SREAM_CH_CHAIN_NET_PKT_TYPE_PING, + dap_stream_ch_chain_net_pkt_write(a_ch, DAP_STREAM_CH_CHAIN_NET_PKT_TYPE_PING, l_ch_chain_net_pkt->hdr.net_id, NULL, 0); dap_stream_ch_set_ready_to_write(a_ch, true); } break; // received ping request - > send pong request - case DAP_SREAM_CH_CHAIN_NET_PKT_TYPE_PING: { + case DAP_STREAM_CH_CHAIN_NET_PKT_TYPE_PING: { log_it(L_INFO, "Get STREAM_CH_CHAIN_NET_PKT_TYPE_PING"); dap_stream_ch_chain_net_pkt_write(a_ch, DAP_STREAM_CH_CHAIN_NET_PKT_TYPE_PONG, l_ch_chain_net_pkt->hdr.net_id,NULL, 0); diff --git a/dap_stream_ch_chain_net_pkt.h b/dap_stream_ch_chain_net_pkt.h index 0d52cf0..cad56b1 100755 --- a/dap_stream_ch_chain_net_pkt.h +++ b/dap_stream_ch_chain_net_pkt.h @@ -31,7 +31,7 @@ #include "dap_stream_ch.h" #define DAP_STREAM_CH_CHAIN_NET_PKT_TYPE_REQUEST 0x01 -#define DAP_SREAM_CH_CHAIN_NET_PKT_TYPE_PING 0x02 +#define DAP_STREAM_CH_CHAIN_NET_PKT_TYPE_PING 0x02 #define DAP_STREAM_CH_CHAIN_NET_PKT_TYPE_PONG 0x03 #define DAP_STREAM_CH_CHAIN_NET_PKT_TYPE_NODE_ADDR_REQUEST 0x14 #define DAP_STREAM_CH_CHAIN_NET_PKT_TYPE_NODE_ADDR 0x11 -- GitLab