Skip to content

Commit 1e697ab

Browse files
jhirsirlubos
authored andcommitted
samples: dect_phy: dect_shell: fix: channel selection in case of fail
Fixing channel selection in case if not best channel found. I.e. failing gracefully and not trying to invalid channel. Signed-off-by: Jani Hirsimäki <[email protected]>
1 parent fc8dd6d commit 1e697ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/dect/dect_phy/dect_shell/src/dect/mac/dect_phy_mac_ctrl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static void dect_phy_mac_ctrl_beacon_start_work_handler(struct k_work *work_item
6262
struct dect_phy_mac_ctrl_beacon_starter_data *data =
6363
CONTAINER_OF(work_item, struct dect_phy_mac_ctrl_beacon_starter_data, work);
6464
int ret = 0;
65-
uint16_t chosen_channel;
65+
int chosen_channel;
6666
char started_string[255];
6767

6868
if (!dect_phy_ctrl_mdm_phy_api_initialized()) {

0 commit comments

Comments
 (0)