File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ the LICENSE file.
8
8
9
9
#include < unity.h>
10
10
11
+ #include < cstring> // std::memcpy
12
+
11
13
#include < VS2/ParserVS2.h>
12
14
13
15
using VitoWiFiInternals::ParserVS2;
@@ -118,8 +120,8 @@ void test_ok_writeresponse() {
118
120
119
121
// inject data into packet
120
122
const uint8_t data[2 ] = {0x01 , 0x02 };
121
- TEST_ASSERT (_parser .packet ().setLength (_parser .packet ().length () + _parser .packet ().dataLength ()));
122
- std::memcpy (&_parser .packet ()[VS2_DATA], data, _parser .packet ().dataLength ());
123
+ TEST_ASSERT (parser .packet ().setLength (parser .packet ().length () + parser .packet ().dataLength ()));
124
+ std::memcpy (&parser .packet ()[VS2_DATA], data, parser .packet ().dataLength ());
123
125
124
126
TEST_ASSERT_EQUAL (ParserResult::COMPLETE, result);
125
127
TEST_ASSERT_EQUAL_UINT (length, bytesRead);
You can’t perform that action at this time.
0 commit comments