M changelog.md => changelog.md +1 -0
@@ 43,6 43,7 @@
* Fix too many time options in the meditation application.
* Fix default counter settings.
* Fix displaying the special characters in a note title.
+* Fixed CUSD URC parser.
### Other
M module-cellular/at/src/UrcCusd.cpp => module-cellular/at/src/UrcCusd.cpp +6 -2
@@ 94,8 94,12 @@ void Cusd::split(const std::string &str)
tokens.push_back(el);
}
}
+ uint32_t token = 0;
for (auto &t : tokens) {
- utils::findAndReplaceAll(t, commaString, "");
- t = utils::trim(t);
+ if (token != static_cast<uint32_t>(Tokens::Response)) {
+ utils::findAndReplaceAll(t, commaString, "");
+ t = utils::trim(t);
+ }
+ token += 1;
}
}