Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/pros/misc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Controller {
* The ID of the controller (e.g. the master or partner controller).
* Must be one of CONTROLLER_MASTER or CONTROLLER_PARTNER
*/
explicit Controller(controller_id_e_t id);
explicit constexpr Controller(controller_id_e_t id): _id(id) {}

/**
* Checks if the controller is connected.
Expand Down
2 changes: 0 additions & 2 deletions src/devices/controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ namespace pros {
inline namespace v5 {
using namespace pros::c;

Controller::Controller(pros::controller_id_e_t id) : _id(id) {}

std::int32_t Controller::is_connected(void) {
return controller_is_connected(_id);
}
Expand Down