From 8bc1332660fbed76db0977dae23871ee83ff86d6 Mon Sep 17 00:00:00 2001
From: ANTA <arcticshine999@gmail.com>
Date: Tue, 16 Jul 2019 15:43:06 +0400
Subject: [PATCH] SREAM fixed

---
 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 7eaf6e4..324139e 100755
--- a/dap_stream_ch_chain_net.c
+++ b/dap_stream_ch_chain_net.c
@@ -201,13 +201,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