diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-01-03 00:27:28 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-01-16 07:48:20 +0100 |
commit | ae3e4ce238099dc43d3e013760195903142c1028 (patch) | |
tree | dd6ccf6ce67667bf891a41587ee61a35a578f745 /tracker-wii/wii_camera.cpp | |
parent | d605ba28c0aa051384273941fa238a9174321a6d (diff) |
tracker/wii: remove unused variable
Diffstat (limited to 'tracker-wii/wii_camera.cpp')
-rw-r--r-- | tracker-wii/wii_camera.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/tracker-wii/wii_camera.cpp b/tracker-wii/wii_camera.cpp index da998ecf..a393b843 100644 --- a/tracker-wii/wii_camera.cpp +++ b/tracker-wii/wii_camera.cpp @@ -108,17 +108,13 @@ bool WIICamera::start(int, int, int, int) void WIICamera::stop() { - onExit = true; - m_pDev->ChangedCallback = nullptr; - m_pDev->Disconnect(); - Beep(1000, 200); - if (m_pDev) { - m_pDev=nullptr; - m_pDev = nullptr; - } + m_pDev->ChangedCallback = nullptr; + m_pDev->Disconnect(); + Beep(1000, 200); + m_pDev = nullptr; - cam_info = pt_camera_info(); - cam_desired = pt_camera_info(); + cam_info = {}; + cam_desired = {}; } wii_camera_status WIICamera::pair() |