Skip to content

Commit d9a0a50

Browse files
author
mikee47
committed
Fix failing test related to _F()
The test macros use stack code which corrupts the buffer created by _F(), so don't use it in this instance.
1 parent 1025908 commit d9a0a50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/app/custom.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ class CustomTest : public TestGroup
4444
Serial << _F("Content: ") << customObject.content() << endl;
4545

4646
unsigned char data[12] = {0x39, 0x87, 0x12, 0x11, 0x27, 0x91, 0x28, 0x79, 0x87, 0xAA, 0x09, 0xD4};
47-
REQUIRE(customObject.name() == _F("Object Name "));
48-
REQUIRE(customObject.description() == _F("Object Description "));
47+
REQUIRE(customObject.name() == F("Object Name "));
48+
REQUIRE(customObject.description() == F("Object Description "));
4949
REQUIRE(customObject.content().length() == sizeof(data));
5050
REQUIRE(memcmp_P(customObject.content().data(), data, sizeof(data)) == 0);
5151
}

0 commit comments

Comments
 (0)