~aleteoryx/muditaos

75c167e8a830c0b42ed635fa02c5cca7177edc8f — kkleczkowski 5 years ago d3927dc
[EGD-4848] CUSD parser fixed (#1173)

Fixes CUSD parser bug, it was removig comma from USSD message.
2 files changed, 7 insertions(+), 2 deletions(-)

M changelog.md
M module-cellular/at/src/UrcCusd.cpp
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;
    }
}