Skip to content

Commit

Permalink
🐛 Remove ambiguous case for constructing pros::Task (#182)
Browse files Browse the repository at this point in the history
* Alternate Task contructor: ommission of prio and stack_depth while still allowing access to name

* Delegation of truncated constructor to the normal constructor

* Remove default params for second Task constructor
  • Loading branch information
jm-spencer authored and HotelCalifornia committed Nov 10, 2019
1 parent f419c5f commit 6b1acee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/pros/rtos.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class Task {
* debugging. The name may be up to 32 characters long.
*
*/
Task(task_fn_t function, void* parameters = NULL, const char* name = "");
Task(task_fn_t function, void* parameters, const char* name);

/**
* Create a C++ task object from a task handle
Expand Down

0 comments on commit 6b1acee

Please sign in to comment.