Skip to content

Commit

Permalink
Guard against Steam Controller input when we're shutting down.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Sep 15, 2018
1 parent e8a0e35 commit 66294d3
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -479,7 +479,7 @@ public void onCharacteristicChanged(BluetoothGatt gatt, BluetoothGattCharacteris
// Enable this for verbose logging of controller input reports
//Log.v(TAG, "onCharacteristicChanged uuid=" + characteristic.getUuid() + " data=" + HexDump.dumpHexString(characteristic.getValue()));

if (characteristic.getUuid().equals(inputCharacteristic)) {
if (characteristic.getUuid().equals(inputCharacteristic) && !mFrozen) {
mManager.HIDDeviceInputReport(getId(), characteristic.getValue());
}
}
Expand Down

0 comments on commit 66294d3

Please sign in to comment.