Commit 82c68b3b authored by Tien Thinh NGUYEN's avatar Tien Thinh NGUYEN

Fix issue for MNC/MCC conversion

parent d8fd7795
...@@ -181,8 +181,13 @@ void conv::plmnToMccMnc( ...@@ -181,8 +181,13 @@ void conv::plmnToMccMnc(
} }
} else { } else {
m_mnc = plmn.mnc_digit3 * 100 + plmn.mnc_digit1 * 10 + plmn.mnc_digit2; m_mnc = plmn.mnc_digit3 * 100 + plmn.mnc_digit1 * 10 + plmn.mnc_digit2;
}
mnc = std::to_string(m_mnc); mnc = std::to_string(m_mnc);
if ((plmn.mnc_digit2 == 0) and (plmn.mnc_digit1 == 0)) {
mnc = "00" + mnc;
} else if (plmn.mnc_digit1 == 0) {
mnc = "0" + mnc;
}
}
return; return;
} }
......
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