From 1febc6b296641ca1db45adc9dbeb6cd07a0c826f Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Mon, 4 Jul 2016 14:17:11 -0500 Subject: [PATCH] Removed use of C struct initializer in C++ --- ESP8266/ATParser/ATParser.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ESP8266/ATParser/ATParser.cpp b/ESP8266/ATParser/ATParser.cpp index 223dd24..f3e3d6d 100644 --- a/ESP8266/ATParser/ATParser.cpp +++ b/ESP8266/ATParser/ATParser.cpp @@ -325,5 +325,9 @@ bool ATParser::recv(const char *response, ...) // oob registration void ATParser::oob(const char *prefix, Callback cb) { - _oobs.push_back((struct oob){strlen(prefix), prefix, cb}); + struct oob oob; + oob.len = strlen(prefix); + oob.prefix = prefix; + oob.cb = cb; + _oobs.push_back(oob); }