Skip to content

Commit

Permalink
Update haritorax-interpreter to v3.2.3
Browse files Browse the repository at this point in the history
I NEED TO TEST STUFF PROPERLY

fixes logging not working when using auto detection
  • Loading branch information
JovannMC committed Dec 18, 2024
1 parent 1e0310f commit b6f1354
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"@slimevr/common": "^0.1.2",
"@slimevr/firmware-protocol": "^0.6.5",
"@slimevr/tracker-emulation": "^0.2.4",
"haritorax-interpreter": "^3.2.2",
"haritorax-interpreter": "^3.2.3",
"i18next": "^24.1.2",
"loc-i18next": "^0.1.6",
"lodash-es": "^4.17.21",
Expand Down
9 changes: 4 additions & 5 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ ipcMain.handle("autodetect", async () => {
device = undefined;

log("Initializing new HaritoraX instance...", "detect");
initializeDevice(true);
initializeDevice();

log("Getting available devices...", "detect");

Expand Down Expand Up @@ -843,10 +843,7 @@ ipcMain.on("start-connection", async (_event, arg) => {
return false;
}

if (shouldInitializeNewDevice()) {
initializeDevice();
startDeviceListeners();
}
if (shouldInitializeNewDevice()) initializeDevice();

mainWindow.webContents.send("set-status", "main.status.searching");
if (types.includes("bluetooth")) await device.startConnection("bluetooth");
Expand Down Expand Up @@ -896,6 +893,8 @@ function initializeDevice(forceDisableLogging: boolean = false) {
effectiveLoggingMode.toString()
] || [false, false, false, false];
device = new HaritoraX(trackerType, logging, imuProcessing, rawData, printWrites);

startDeviceListeners();
}

async function notifyConnectedDevices(): Promise<void> {
Expand Down

0 comments on commit b6f1354

Please sign in to comment.