From 90940a774eab876c38d5cef981b4be5bae67a462 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 8 Jul 2018 23:20:56 +0200 Subject: modernize only --- tracker-wii/wii_camera.cpp | 6 ++---- tracker-wii/wii_frame.hpp | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'tracker-wii') diff --git a/tracker-wii/wii_camera.cpp b/tracker-wii/wii_camera.cpp index b8b370ab..93dfe4ff 100644 --- a/tracker-wii/wii_camera.cpp +++ b/tracker-wii/wii_camera.cpp @@ -84,13 +84,11 @@ WIICamera::result WIICamera::get_frame(pt_frame& frame_) return { true, cam_info }; } -bool WIICamera::start(int idx, int fps, int res_x, int res_y) +bool WIICamera::start(int, int, int, int) { m_pDev = std::make_unique(); m_pDev->ChangedCallback = on_state_change; - m_pDev->CallbackTriggerFlags = (state_change_flags)(CONNECTED | - EXTENSION_CHANGED | - MOTIONPLUS_CHANGED); + m_pDev->CallbackTriggerFlags = (state_change_flags)(CONNECTED|EXTENSION_CHANGED |MOTIONPLUS_CHANGED); return true; } diff --git a/tracker-wii/wii_frame.hpp b/tracker-wii/wii_frame.hpp index 31967d10..2107646b 100644 --- a/tracker-wii/wii_frame.hpp +++ b/tracker-wii/wii_frame.hpp @@ -59,7 +59,7 @@ private: bool fresh = true; cv::Mat frame_copy, frame_color, frame_resize, frame_out; - wii_camera_status status; + wii_camera_status status = wii_cam_wait_for_dongle; }; } // ns pt_module -- cgit v1.2.3