Skip to content

Commit

Permalink
Merge pull request #2759 from particle-iot/fix/quectel-get-cgi-on-2g
Browse files Browse the repository at this point in the history
Query 2g registration status in addition to lte with BG95m5 modem
  • Loading branch information
scott-brust authored Apr 4, 2024
2 parents 557240e + b70467d commit 1a641ce
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion hal/network/ncp_client/quectel/quectel_ncp_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ int QuectelNcpClient::getCellularGlobalIdentity(CellularGlobalIdentity* cgi) {
// Fill in LAC and Cell ID based on current RAT, prefer PSD and EPS
// fallback to CSD
CHECK_PARSER_OK(parser_.execCommand("AT+CEREG?"));
if (isQuecCat1Device()) {
if (isQuecCat1Device() || ncpId() == PLATFORM_NCP_QUECTEL_BG95_M5) {
CHECK_PARSER_OK(parser_.execCommand("AT+CGREG?"));
CHECK_PARSER_OK(parser_.execCommand("AT+CREG?"));
}
Expand Down
1 change: 0 additions & 1 deletion system/src/system_ble_prov.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ int system_ble_prov_mode(bool enabled, void* reserved) {
}

bool system_ble_prov_get_status(void* reserved) {
SYSTEM_THREAD_CONTEXT_SYNC(system_ble_prov_get_status(reserved));
return BleProvisioningModeHandler::instance()->getProvModeStatus();
}

Expand Down

0 comments on commit 1a641ce

Please sign in to comment.