diff --git a/Boards/CYD-JC2432W328C/Source/hal/YellowDisplay.cpp b/Boards/CYD-JC2432W328C/Source/hal/YellowDisplay.cpp index 7e8fbb63..ed680d05 100644 --- a/Boards/CYD-JC2432W328C/Source/hal/YellowDisplay.cpp +++ b/Boards/CYD-JC2432W328C/Source/hal/YellowDisplay.cpp @@ -34,5 +34,6 @@ std::shared_ptr createDisplay() { configuration->backlightDutyFunction = driver::pwmbacklight::setBacklightDuty; - return std::make_shared(std::move(configuration)); + auto display = std::make_shared(std::move(configuration)); + return std::reinterpret_pointer_cast(display); }