From 6321e53cf5b59671463f7c98040714ef11bf138e Mon Sep 17 00:00:00 2001 From: ion098 <146852218+ion098@users.noreply.github.com> Date: Wed, 29 May 2024 17:09:05 +0000 Subject: [PATCH] fix compile error, move ControllerInit ctor and dtor to _impl namespace --- src/gamepad/controller.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gamepad/controller.cpp b/src/gamepad/controller.cpp index d151483..5754b54 100644 --- a/src/gamepad/controller.cpp +++ b/src/gamepad/controller.cpp @@ -21,7 +21,7 @@ Controller& master = master_buf.as_controller; ControllerBuf partner_buf {}; Controller& partner = partner_buf.as_controller; -ControllerInit::ControllerInit() { +_impl::ControllerInit::ControllerInit() { // only initialize once, if we're the first ControllerInit instance if (nifty_counter == 0) { new (&master_buf.as_controller) Controller(pros::E_CONTROLLER_MASTER); @@ -30,7 +30,7 @@ ControllerInit::ControllerInit() { ++nifty_counter; } -ControllerInit::~ControllerInit() { +_impl::ControllerInit::~ControllerInit() { --nifty_counter; // only destroy if we're the last ControllerInit instance if (nifty_counter == 0) {