Skip to content

Commit 1febc6b

Browse files
committed
Removed use of C struct initializer in C++
1 parent 636af25 commit 1febc6b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ESP8266/ATParser/ATParser.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,5 +325,9 @@ bool ATParser::recv(const char *response, ...)
325325
// oob registration
326326
void ATParser::oob(const char *prefix, Callback<void()> cb)
327327
{
328-
_oobs.push_back((struct oob){strlen(prefix), prefix, cb});
328+
struct oob oob;
329+
oob.len = strlen(prefix);
330+
oob.prefix = prefix;
331+
oob.cb = cb;
332+
_oobs.push_back(oob);
329333
}

0 commit comments

Comments
 (0)