Skip to content

Commit 13c07ec

Browse files
committed
Corrected release mode optimization
- Missing a return call, which apparently is not an issue in Debug mode, but in release mode led to issues with variables being optimized away
1 parent 7a8b658 commit 13c07ec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Source/OnixDevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ oni_dev_idx_t OnixDevice::getHubIndexFromPassthroughIndex(oni_dev_idx_t passthro
6565
return 0;
6666
}
6767

68-
oni_dev_idx_t idx = (passthroughIndex - 7) << 8;
68+
return (passthroughIndex - 7) << 8;
6969
}
7070

7171
oni_dev_idx_t OnixDevice::getDeviceIndexFromPassthroughIndex(oni_dev_idx_t passthroughIndex) const

Source/OnixDevice.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ namespace OnixSourcePlugin
4242
};
4343

4444
enum class OnixDeviceType {
45-
BNO,
45+
BNO = 0,
4646
POLLEDBNO,
4747
NEUROPIXELSV1E,
4848
NEUROPIXELSV1F,

0 commit comments

Comments
 (0)