Skip to content

Commit 867a28e

Browse files
committed
modeules: network: Fix typo in message type
Fix typo Signed-off-by: Jan Tore Guggedal <jantore.guggedal@nordicsemi.no>
1 parent 983c7fd commit 867a28e

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

app/src/modules/network/network.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ static void lte_lc_evt_handler(const struct lte_lc_evt *const evt)
220220
network_status_notify(NETWORK_MODEM_RESET_LOOP);
221221
} else if (evt->modem_evt == LTE_LC_MODEM_EVT_LIGHT_SEARCH_DONE) {
222222
LOG_DBG("LTE_LC_MODEM_EVT_LIGHT_SEARCH_DONE");
223-
network_status_notify(NETWORK_LIGHT_SERACH_DONE);
223+
network_status_notify(NETWORK_LIGHT_SEARCH_DONE);
224224
}
225225
break;
226226
case LTE_LC_EVT_PSM_UPDATE: {

app/src/modules/network/network.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ enum network_msg_type {
4444
* attach to without finding a suitable cell according to 3GPP selection rules.
4545
* The modem will continue with a more thorough search unless it is explicitly stopped.
4646
*/
47-
NETWORK_LIGHT_SERACH_DONE,
47+
NETWORK_LIGHT_SEARCH_DONE,
4848

4949
/* A network attach request has been rejected by the network. */
5050
NETWORK_ATTACH_REJECTED,

docs/modules/network.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The following messages are supported:
3131
- **NETWORK_CONNECTED**: The device is connected to the network and has an IP address.
3232
- **NETWORK_MODEM_RESET_LOOP**: The modem has detected a reset loop with too many attach requests within a short time.
3333
- **NETWORK_UICC_FAILURE**: The modem has detected an error with the SIM card. Confirm that it is installed correctly.
34-
- **NETWORK_LIGHT_SERACH_DONE**: The modem has completed a light search based on previous cell history without finding a suitable cell. This message can be used to stop the search to save power.
34+
- **NETWORK_LIGHT_SEARCH_DONE**: The modem has completed a light search based on previous cell history without finding a suitable cell. This message can be used to stop the search to save power.
3535
- **NETWORK_ATTACH_REJECTED**: A network attach request has been rejected by the network.
3636
- **NETWORK_PSM_PARAMS**: PSM parameters have been received (in the `.psm_cfg` field of the message).
3737
- **NETWORK_EDRX_PARAMS**: eDRX parameters have been received (in `.edrx_cfg` field).

tests/module/network/src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,9 @@ void test_light_search_done(void)
361361

362362
send_mdmev_evt(LTE_LC_MODEM_EVT_LIGHT_SEARCH_DONE);
363363

364-
wait_for_and_check_msg(&msg, NETWORK_LIGHT_SERACH_DONE);
364+
wait_for_and_check_msg(&msg, NETWORK_LIGHT_SEARCH_DONE);
365365

366-
TEST_ASSERT_EQUAL(NETWORK_LIGHT_SERACH_DONE, msg.type);
366+
TEST_ASSERT_EQUAL(NETWORK_LIGHT_SEARCH_DONE, msg.type);
367367
}
368368

369369
void test_modem_reset_loop(void)

0 commit comments

Comments
 (0)