summaryrefslogtreecommitdiffhomepage
path: root/tracker-wii
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-wii')
-rw-r--r--tracker-wii/wii_camera.cpp16
-rw-r--r--tracker-wii/wii_camera.h1
2 files changed, 6 insertions, 11 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()
diff --git a/tracker-wii/wii_camera.h b/tracker-wii/wii_camera.h
index 14cb55df..729ad6c2 100644
--- a/tracker-wii/wii_camera.h
+++ b/tracker-wii/wii_camera.h
@@ -61,7 +61,6 @@ private:
struct { float p = 0, r = 0; } horizon;
pt_settings s;
- bool onExit = false;
};
} // ns pt_module