We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e8758c commit 6fe0c8aCopy full SHA for 6fe0c8a
src/user_programs/user_program_ending.cpp
@@ -1,18 +1,8 @@
1
#include "userlib/syscalls.hpp"
2
-
3
-#include <cstdio>
+#include "nrf_delay.h"
4
5
void ending_task(void)
6
{
7
- using namespace edge::userlib;
8
- volatile int i = 0;
9
- bool enabled = true;
10
- while (i < 5'000'000) {
11
- if (i % 1'000'000 == 0) {
12
- edge::userlib::set_led(0, 0, enabled);
13
- enabled = !enabled;
14
- }
15
- i = i + 1;
16
17
- debug_print("Ending Task: Done Running. 0,0 should stop changing.\n");
+ nrf_delay_ms(1000);
+ edge::userlib::debug_print("Ending Task: Done Running\n");
18
}
0 commit comments