Skip to content

Commit b136869

Browse files
authored
fix compilation
1 parent fa76f07 commit b136869

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/test_ParserVS2/test_ParserVS2.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ the LICENSE file.
88

99
#include <unity.h>
1010

11+
#include <cstring> // std::memcpy
12+
1113
#include <VS2/ParserVS2.h>
1214

1315
using VitoWiFiInternals::ParserVS2;
@@ -118,8 +120,8 @@ void test_ok_writeresponse() {
118120

119121
// inject data into packet
120122
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());
123125

124126
TEST_ASSERT_EQUAL(ParserResult::COMPLETE, result);
125127
TEST_ASSERT_EQUAL_UINT(length, bytesRead);

0 commit comments

Comments
 (0)