We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 916715e commit 7b9a8d6Copy full SHA for 7b9a8d6
1 file changed
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