Skip to content

Commit 2c7ae89

Browse files
committed
pbio/platform/nxt: Use pbio os run hook.
Otherwise we don't drive the new processes.
1 parent fe12455 commit 2c7ae89

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/pbio/platform/nxt/platform.c

+5-3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
#include <pbdrv/reset.h>
1010
#include <pbio/button.h>
1111
#include <pbio/main.h>
12+
#include <pbio/os.h>
13+
1214
#include <pbsys/core.h>
1315
#include <pbsys/main.h>
1416
#include <pbsys/program_stop.h>
@@ -75,13 +77,13 @@ static bool bluetooth_connect(void) {
7577
return false;
7678
}
7779

78-
pbio_do_one_event();
80+
pbio_os_run_processes_once();
7981
}
8082

8183
nx_bt_stream_open(connection_handle);
8284
}
8385

84-
pbio_do_one_event();
86+
pbio_os_run_processes_once();
8587
}
8688

8789
nx_display_clear();
@@ -131,7 +133,7 @@ void SystemInit(void) {
131133
goto out;
132134
}
133135

134-
pbio_do_one_event();
136+
pbio_os_run_processes_once();
135137
}
136138

137139
nx_display_string("Connected. REPL.\n");

0 commit comments

Comments
 (0)