File tree 1 file changed +4
-2
lines changed
libraries/MultiThreading/examples/BasicMultiThreading 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -57,27 +57,29 @@ void setup() {
57
57
, 1024 // Stack size
58
58
, NULL // When no parameter is used, simply pass NULL
59
59
, 1 // Priority
60
- , task_handle // With task handle we will be able to manipulate with this task.
60
+ , & task_handle // With task handle we will be able to manipulate with this task.
61
61
, ARDUINO_RUNNING_CORE // Core on which the task will run
62
62
);
63
63
64
64
// Now the task scheduler, which takes over control of scheduling individual tasks, is automatically started.
65
65
}
66
66
67
67
void loop (){
68
+ /*
68
69
if(task_handle != NULL){ // Make sure that the task actually exists
69
70
delay(10000);
70
71
vTaskDelete(task_handle); // Delete task
71
72
task_handle = NULL; // prevent calling vTaskDelete on non-existing task
72
73
}
74
+ */
73
75
}
74
76
75
77
/* --------------------------------------------------*/
76
78
/* ---------------------- Tasks ---------------------*/
77
79
/* --------------------------------------------------*/
78
80
79
81
void TaskBlink (void *pvParameters){ // This is a task.
80
- uint32_t blink_delay = ( uint32_t ) * pvParameters;
82
+ uint32_t blink_delay = *(( uint32_t *) pvParameters) ;
81
83
82
84
/*
83
85
Blink
You can’t perform that action at this time.
0 commit comments