Commit e609ffb0 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Tentative fix for MCC with 00

parent a800f831
......@@ -74,6 +74,11 @@ void PlmnId::setMccMnc(const std::string mcc, const std::string mnc) {
void PlmnId::getMcc(std::string& mcc) {
int m_mcc = mcc_digit1 * 100 + mcc_digit2 * 10 + mcc_digit3;
mcc = to_string(m_mcc);
if ((mcc_digit2 == 0) and (mcc_digit1 == 0)) {
mcc = "00" + mcc;
} else if (mcc_digit1 == 0) {
mcc = "0" + mcc;
}
}
//------------------------------------------------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment