Skip to content

Commit 672130c

Browse files
committed
rebase and whitespace fixes
1 parent b06fb7f commit 672130c

File tree

5 files changed

+8
-965
lines changed

5 files changed

+8
-965
lines changed

hal/network/ncp_client/sara/sara_ncp_client.cpp

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,12 +1312,7 @@ int SaraNcpClient::selectSimCard(ModemState& state) {
13121312
// NOTE: [ch76449] R510S will not retain GPIO's HIGH after a cold boot
13131313
// Workaround: Set pin that needs to be HIGH to mode "Module status indication",
13141314
// which will be set HIGH when the module is ON, and LOW when it's OFF.
1315-
// FIXME: DEBUG!!!!!!!!!!!
1316-
#if PLATFORM_ID == PLATFORM_BSOM
1317-
const int internalSimMode = 255; // EVT3 HW issue: Pad disabled (use EXT SIM with solder jumper shorted)
1318-
#else
13191315
const int internalSimMode = 10; // Module status indication mode
1320-
#endif
13211316
if (mode != internalSimMode) {
13221317
const int r = CHECK_PARSER(parser_.execCommand("AT+UGPIOC=%u,%d",
13231318
UBLOX_NCP_SIM_SELECT_PIN, internalSimMode));
@@ -1931,22 +1926,6 @@ int SaraNcpClient::setRegistrationTimeout(unsigned timeout) {
19311926
return SYSTEM_ERROR_NONE;
19321927
}
19331928

1934-
int SaraNcpClient::registerNet() {
1935-
int r = 0;
1936-
1937-
// Set modem full functionality
1938-
auto respCfun = parser_.sendCommand(UBLOX_CFUN_TIMEOUT, "AT+CFUN?");
1939-
int cfunVal = -1;
1940-
auto rCfun = respCfun.scanf("+CFUN: %d", &cfunVal);
1941-
CHECK_PARSER_OK(respCfun.readResult());
1942-
if (rCfun && cfunVal != 1) {
1943-
}
1944-
1945-
int SaraNcpClient::setRegistrationTimeout(unsigned timeout) {
1946-
registrationTimeout_ = std::max(timeout, REGISTRATION_TIMEOUT);
1947-
return SYSTEM_ERROR_NONE;
1948-
}
1949-
19501929
int SaraNcpClient::registerNet() {
19511930
int r = 0;
19521931

hal/src/stm32f2xx/core_hal_stm32f2xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1271,7 +1271,7 @@ bool HAL_Feature_Get(HAL_Feature feature)
12711271
uint32_t value = 0;
12721272
dct_read_app_data_copy(DCT_EXT_LOW_SPEED_CLOCK_DISABLE_OFFSET, &value, sizeof(value));
12731273
return value == DCT_EXT_LOW_SPEED_CLOCK_DISABLE_SET;
1274-
}
1274+
}
12751275
#endif // HAL_PLATFORM_INTERNAL_LOW_SPEED_CLOCK
12761276
}
12771277
return false;

services/src/ncp_fw_update.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
R510 Firmware Update Background Check:
2020
=====================
2121
1. Baked into sara_ncp_client.cpp init process
22-
2. When ATI9 is used to determine the modem version (thus, only when modem is on),
22+
2. When ATI9 is used to determine the modem version (thus, only when modem is on),
2323
check if there is an update firmware version available.
2424
3. Set a flag for Cellular.updatePending() if update available.
2525
@@ -150,9 +150,9 @@ void NcpFwUpdate::init(NcpFwUpdateCallbacks* callbacks) {
150150
ncpFwUpdateState_ = FW_UPDATE_IDLE_STATE;
151151
if (ncpFwUpdateData_.var.status != FW_UPDATE_IDLE_STATUS) {
152152
LOG(INFO, "Firmware update finished, %s status: %d", (ncpFwUpdateData_.var.status == FW_UPDATE_SUCCESS_STATUS) ? "success" : "failed", ncpFwUpdateData_.var.status);
153-
153+
154154
ncpFwUpdateStatusDiagnostics_ = ncpFwUpdateData_.var.status;
155-
155+
156156
ncpFwUpdateData_.var.status = FW_UPDATE_IDLE_STATUS;
157157
saveNcpFwUpdateData_();
158158
}
@@ -218,7 +218,7 @@ int NcpFwUpdate::checkUpdate(const NcpFwUpdateConfig* userConfigData) {
218218
return 0;
219219
}
220220

221-
void NcpFwUpdate::validateNcpFwUpdateData_() {
221+
void NcpFwUpdate::validateNcpFwUpdateData_() {
222222
if (ncpFwUpdateData_.var.header != NCP_FW_DATA_HEADER || ncpFwUpdateData_.var.footer != NCP_FW_DATA_FOOTER) {
223223
memset(ncpFwUpdateData_.data, 0, sizeof(ncpFwUpdateData_.data));
224224
ncpFwUpdateData_.var.header = NCP_FW_DATA_HEADER;
@@ -241,7 +241,7 @@ int NcpFwUpdate::saveNcpFwUpdateData_() {
241241
} tempData;
242242
int result = SystemCache::instance().get(SystemCacheKey::NCP_FW_UPDATE_DATA, tempData.data, sizeof(tempData.data));
243243
if (result != sizeof(tempData.data) || /* memcmp(tempData.data, ncpFwUpdateData_.data, sizeof(tempData.data) != 0)) { // better but not working */
244-
tempData.var.header != ncpFwUpdateData_.var.header ||
244+
tempData.var.header != ncpFwUpdateData_.var.header ||
245245
tempData.var.footer != ncpFwUpdateData_.var.footer ||
246246
tempData.var.state != ncpFwUpdateData_.var.state ||
247247
tempData.var.status != ncpFwUpdateData_.var.status ||
@@ -606,7 +606,7 @@ ccfdc48c0a45198d6e168b30d0740959 SARA-R510S-00B-01_FW02.06_A00.01_IP_SARA-R510S
606606

607607
case FW_UPDATE_INSTALL_CELL_DISCONNECTING_STATE:
608608
{
609-
// FIXME: This needs to wait for
609+
// FIXME: This needs to wait for
610610
// 0000091895 [ncp.at] TRACE: < +CGEV: ME PDN DEACT 1
611611
// 0000091896 [ncp.at] TRACE: < +CGEV: ME DETACH
612612
// 0000091896 [ncp.at] TRACE: < +UUPSDD: 0
@@ -632,7 +632,7 @@ ccfdc48c0a45198d6e168b30d0740959 SARA-R510S-00B-01_FW02.06_A00.01_IP_SARA-R510S
632632
if (RESP_OK == cellular_command(nullptr, nullptr, 60000, "AT+UFWINSTALL=1,115200\r\n")) {
633633
ncpFwUpdateData_.var.state = FW_UPDATE_INSTALL_STATE_WAITING;
634634
ncpFwUpdateData_.var.status = ncpFwUpdateStatus_;
635-
saveNcpFwUpdateData_();
635+
saveNcpFwUpdateData_();
636636
// Wait for AT interface to become unresponsive, since we need to rely on that to break out of our install later
637637
atResponsive_ = 1;
638638
while (atResponsive_ && HAL_Timer_Get_Milli_Seconds() - atOkCheckTimer_ < NCP_FW_MODEM_INSTALL_START_TIMEOUT) {

system/inc/ncp_fw_update.h

Lines changed: 0 additions & 121 deletions
This file was deleted.

0 commit comments

Comments
 (0)