From 36e5fac0fbf67625016220fd0ff5f0affe5852c9 Mon Sep 17 00:00:00 2001 From: Azim Khan Date: Fri, 8 Sep 2017 17:23:23 +0100 Subject: [PATCH] Rephrase confusing function description --- tests/suites/target_test.function | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/suites/target_test.function b/tests/suites/target_test.function index 0bafe454f2..5961947070 100644 --- a/tests/suites/target_test.function +++ b/tests/suites/target_test.function @@ -17,7 +17,7 @@ assert( sizeof( *( p ) ) == sizeof( *( start ) ) ); \ /* <= is checked to support use inside a loop where \ pointer is incremented after reading data. */ \ - assert( (uint32_t)( ( ( p ) - ( start ) ) + step ) <= len );\ + assert( (uint32_t)( ( ( p ) - ( start ) ) + ( step ) ) <= ( len ) );\ ( p ) += step; \ } \ while( 0 ) @@ -156,7 +156,8 @@ uint8_t * receive_data( uint32_t * data_len ) } /** - * \brief Parses received byte array and finds number of hex parameters. + * \brief Find count of hex arguments(test function arguments) in the + * received binary data. * * \param count Parameter count * \param data Received Byte array