Skip to content

Commit bb8182f

Browse files
authored
Merge pull request #4 from ARMmbed/fix-iar
Removed use of C struct initializer in C++
2 parents 636af25 + 1febc6b commit bb8182f

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)