Skip to content
This repository has been archived by the owner on May 3, 2021. It is now read-only.

Commit

Permalink
Hot-Fix: Crash in ControllerManager::updateStateAndPredict when xbox …
Browse files Browse the repository at this point in the history
…360 controller is connected

* Need to skip optical update for PSNavi controller views
  • Loading branch information
HipsterSloth committed Oct 25, 2018
1 parent 937e29a commit 740161c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/psmoveprotocol/ProtocolVersion.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#define PSM_RELEASE_VERSION_PHASE alpha
#define PSM_RELEASE_VERSION_MINOR 9
#define PSM_RELEASE_VERSION_RELEASE 0
#define PSM_RELEASE_VERSION_HOTFIX 0
#define PSM_RELEASE_VERSION_HOTFIX 1

/// "Product.Major-Phase Minor.Release.Hotfix"
#if !defined(PSM_RELEASE_VERSION_STRING)
Expand Down
1 change: 1 addition & 0 deletions src/psmoveservice/Device/Manager/ControllerManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ ControllerManager::updateStateAndPredict(TrackerManager* tracker_manager)
ServerControllerViewPtr controllerView = getControllerViewPtr(device_id);

if (controllerView->getIsOpen() &&
controllerView->getControllerDeviceType() != CommonDeviceState::PSNavi &&
(controllerView->getIsBluetooth() || controllerView->getIsVirtualController()))
{
controllerView->updateOpticalPoseEstimation(tracker_manager);
Expand Down

0 comments on commit 740161c

Please sign in to comment.