Skip to content

Commit f6a52c0

Browse files
committed
v1.1.0
1 parent eaebcd7 commit f6a52c0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: apps/demonstrations/tracker_application/middleware/ble/app/p2p_server_app.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ void P2PS_STM_App_Notification(P2PS_STM_App_Notification_evt_t *pNotification)
112112
uint8_t out_buffer[244];
113113
uint8_t out_buffer_size = 0;
114114

115-
out_buffer_size = tracker_parse_cmd( 0, pNotification->DataTransfered.pPayload, out_buffer, true );
115+
out_buffer_size =
116+
tracker_parse_cmd( 0, pNotification->DataTransfered.pPayload, out_buffer, sizeof( out_buffer ), true );
116117

117118
if(out_buffer_size > 0)
118119
{
@@ -208,7 +209,7 @@ void P2PS_Send_Notification( void )
208209
if( P2P_Server_App_Context.ReadWrite.ReadyToSend == 0x01 )
209210
{
210211
P2P_Server_App_Context.ReadWrite.ReadyToSend = 0;
211-
HAL_DBG_TRACE_MSG( "-- P2P APPLICATION SERVER : INFORM CLIENT ASNWER CMD \n" );
212+
HAL_DBG_TRACE_MSG( "-- P2P APPLICATION SERVER : INFORM CLIENT ANSWER CMD \n" );
212213
if( P2P_Server_App_Context.Notification_Status == 1 )
213214
{
214215
P2PS_STM_App_Update_Char( P2P_NOTIFY_CHAR_UUID, P2P_Server_App_Context.ReadWrite.Buffer,

0 commit comments

Comments
 (0)