File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 99#include <tinytest_macros.h>
1010#include <tinytest.h>
1111
12+ #include <pbdrv/bluetooth.h>
13+
1214#include <pbio/util.h>
1315#include <pbsys/host.h>
1416#include <pbsys/main.h>
@@ -26,12 +28,16 @@ static PT_THREAD(test_bluetooth(struct pt *pt)) {
2628 // power should be initialized to off
2729 tt_want_uint_op (pbio_test_bluetooth_get_control_state (), = = , PBIO_TEST_BLUETOOTH_STATE_OFF );
2830
31+ pbdrv_bluetooth_power_on (true);
32+
2933 // wait for the power on delay
3034 PT_WAIT_UNTIL (pt , ({
3135 pbio_test_clock_tick (1 );
3236 pbio_test_bluetooth_get_control_state () == PBIO_TEST_BLUETOOTH_STATE_ON ;
3337 }));
3438
39+ pbdrv_bluetooth_start_advertising ();
40+
3541 PT_WAIT_UNTIL (pt , ({
3642 pbio_test_clock_tick (1 );
3743 pbio_test_bluetooth_is_advertising_enabled ();
You can’t perform that action at this time.
0 commit comments