Refactor: Remove wled_test and update CMakeLists.txt
This commit is contained in:
parent
b08186cf00
commit
77059a24aa
@ -13,7 +13,7 @@ find_package(Qt6 COMPONENTS Core Gui WaylandClient Multimedia Widgets Multimedia
|
||||
|
||||
add_executable(Hyperion_Grabber_Wayland_QT
|
||||
hyperiongrabber.cpp
|
||||
hyperionclient.cpp
|
||||
wledclient.cpp
|
||||
main.cpp
|
||||
WaylandGrabber.cpp
|
||||
)
|
||||
@ -39,6 +39,7 @@ target_link_libraries(hyperion-mock
|
||||
Qt6::Gui
|
||||
)
|
||||
|
||||
|
||||
find_program(WAYLAND_SCANNER_EXECUTABLE NAMES wayland-scanner)
|
||||
|
||||
set(WAYLAND_PROTOCOLS_DIR "${CMAKE_CURRENT_BINARY_DIR}/wayland_protocols")
|
||||
|
||||
@ -47,12 +47,6 @@ HyperionGrabber::HyperionGrabber(QHash<QString, QString> opts)
|
||||
} else {
|
||||
qWarning() << "Could not get primary screen size for Wayland grabber. Defaulting to 1920x1080.";
|
||||
}
|
||||
|
||||
if (_inactiveTime_m) {
|
||||
_timer_p = new QTimer(this);
|
||||
connect(_timer_p, &QTimer::timeout, this, &HyperionGrabber::_inActivity);
|
||||
_timer_p->start(_inactiveTime_m);
|
||||
}
|
||||
}
|
||||
|
||||
HyperionGrabber::~HyperionGrabber()
|
||||
@ -100,10 +94,3 @@ void HyperionGrabber::_processFrame(const QVideoFrame &frame)
|
||||
|
||||
_wledClient_p->sendImage(scaledImage);
|
||||
}
|
||||
|
||||
void HyperionGrabber::_inActivity()
|
||||
{
|
||||
// Inactivity handling for WLED might involve sending a black frame or turning off LEDs
|
||||
// For now, we'll just log it. Further implementation needed if desired.
|
||||
qDebug() << "Inactivity detected. Consider sending black frame to WLED.";
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user