Skip to content

Commit 017525e

Browse files
maje-embrlubos
authored andcommitted
samples: radio_test: Fix clearing of test_is_running flag
The test may end either due to a `cancel` command or after sending predefined number of packets. The `test_is_running` flag is now cleared in both cases. Ref: NCSDK-33788 Signed-off-by: Marcin Jelinski <[email protected]>
1 parent b4c2421 commit 017525e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/peripheral/radio_test/src/radio_test.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,8 @@ static void radio_disable(void)
800800
(void)fem_power_down();
801801
}
802802
#endif /* CONFIG_FEM */
803+
804+
test_is_running = false;
803805
}
804806

805807
static void mltpan_6(nrf_radio_mode_t mode)
@@ -1124,8 +1126,6 @@ void radio_test_cancel(enum radio_test_mode type)
11241126
} else {
11251127
cancel();
11261128
}
1127-
1128-
test_is_running = false;
11291129
}
11301130
}
11311131

0 commit comments

Comments
 (0)