We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 916715e + 7b9a8d6 commit c5ac626Copy full SHA for c5ac626
task-07/README.md
@@ -34,11 +34,11 @@ Note: `num` must be in powers of 2.
34
35
* You can register for packets of a certain type and context (port 8888 in our
36
case) using `gnrc_netreg_register()` from [`net/gnrc/netreg.h`](https://doc.riot-os.org/group__net__gnrc__netreg.html):
37
-* The current thread can be obtained with the `sched_active_pid` variable from
38
- `sched.h`
+* The current thread can be obtained with the `thread_getpid()` function from
+ `thread.h`
39
40
```C
41
-gnrc_netreg_entry_t server = GNRC_NETREG_ENTRY_INIT_PID(8888, sched_active_pid);
+gnrc_netreg_entry_t server = GNRC_NETREG_ENTRY_INIT_PID(8888, thread_getpid());
42
gnrc_netreg_register(GNRC_NETTYPE_UDP, &server);
43
```
44
0 commit comments