diff --git a/gui/app/public/i18n/en/translation.ftl b/gui/app/public/i18n/en/translation.ftl
index 0e39515cc..9e5220b62 100644
--- a/gui/app/public/i18n/en/translation.ftl
+++ b/gui/app/public/i18n/en/translation.ftl
@@ -1634,6 +1634,7 @@ firmware_tool-select_source-version = Firmware Version
firmware_tool-select_source-official = Official
firmware_tool-select_source-dev = Dev
firmware_tool-select_source-latest = Latest
+firmware_tool-select_source-prerelease = Pre-release
firmware_tool-select_source-not_selected = No source selected
firmware_tool-select_source-no_boards = No available boards for this source
firmware_tool-select_source-no_versions = No available versions for this source
diff --git a/gui/app/src/components/firmware-tool/steps/SelectSourceStep.tsx b/gui/app/src/components/firmware-tool/steps/SelectSourceStep.tsx
index 62c6912ea..b598c5218 100644
--- a/gui/app/src/components/firmware-tool/steps/SelectSourceStep.tsx
+++ b/gui/app/src/components/firmware-tool/steps/SelectSourceStep.tsx
@@ -23,7 +23,7 @@ function Selector({
text: string;
active: boolean;
official?: boolean;
- tag?: 'official' | 'dev' | 'latest';
+ tag?: 'official' | 'dev' | 'latest' | 'prerelease';
disabled?: boolean;
onClick: () => void;
}) {
@@ -77,6 +77,18 @@ function Selector({
)}
+ {tag === 'prerelease' && (
+
- {sourcesGroupped?.map(({ name, official }) => (
+ {sourcesGrouped?.map(({ name, official }) => (
- {possibleVersions?.map(({ name, disabled }, i) => (
- {
- setPartialBoard((curr) => ({
- ...curr,
- version: name,
- }));
- }}
- text={name}
- />
- ))}
+ {possibleVersions?.map(
+ ({ name, disabled, latest, prerelease }, i) => (
+ {
+ setPartialBoard((curr) => ({
+ ...curr,
+ version: name,
+ }));
+ }}
+ text={name}
+ />
+ )
+ )}
{partialBoard?.source && possibleVersions?.length === 0 && (
)}
diff --git a/gui/app/src/hooks/firmware-update.ts b/gui/app/src/hooks/firmware-update.ts
index 06c71afc1..3138dde82 100644
--- a/gui/app/src/hooks/firmware-update.ts
+++ b/gui/app/src/hooks/firmware-update.ts
@@ -75,7 +75,7 @@ export async function fetchCurrentFirmwareRelease(
);
if (!releases) return null;
- const processedReleses = [];
+ const processedReleases: FirmwareRelease[] = [];
for (const release of releases) {
const fwAsset = firstAsset(release.assets, 'BOARD_SLIMEVR-firmware.bin');
const fw12Asset = firstAsset(release.assets, 'BOARD_SLIMEVR_V1_2-firmware.bin');
@@ -98,7 +98,7 @@ export async function fetchCurrentFirmwareRelease(
deployAsset.browser_download_url,
version
);
- processedReleses.push({
+ processedReleases.push({
name: release.name,
version,
changelog: release.body,
@@ -118,7 +118,7 @@ export async function fetchCurrentFirmwareRelease(
if (userCanUpdate) break; // Stop early if we found one valid update. No need to download more
}
return (
- processedReleses.find(({ userCanUpdate }) => userCanUpdate) ?? processedReleses[0]
+ processedReleases.find(({ userCanUpdate }) => userCanUpdate) ?? processedReleases[0]
);
}
diff --git a/server/core/src/main/java/dev/slimevr/udp/behaviours.kt b/server/core/src/main/java/dev/slimevr/udp/behaviours.kt
index 711f4e0f9..136f1ab84 100644
--- a/server/core/src/main/java/dev/slimevr/udp/behaviours.kt
+++ b/server/core/src/main/java/dev/slimevr/udp/behaviours.kt
@@ -33,12 +33,12 @@ internal const val CONNECTION_TIMEOUT_MS = 5000L
private val ACCEL_OFFSET_CORRECTION_22 = Quaternion.rotationAroundZAxis(FastMath.PI)
private val ACCEL_OFFSET_CORRECTION_21 = Quaternion.rotationAroundZAxis(-FastMath.HALF_PI)
fun getCorrectedAcceleration(acceleration: Vector3, protocolVersion: Int) = if (protocolVersion <= 21) {
- ACCEL_OFFSET_CORRECTION_21.sandwich(acceleration)
- } else if (protocolVersion == 22) {
- ACCEL_OFFSET_CORRECTION_22.sandwich(acceleration)
- } else {
- acceleration
- }
+ ACCEL_OFFSET_CORRECTION_21.sandwich(acceleration)
+} else if (protocolVersion == 22) {
+ ACCEL_OFFSET_CORRECTION_22.sandwich(acceleration)
+} else {
+ acceleration
+}
internal fun assignTracker(receiver: UDPConnection, device: Device, info: SensorInfo): Pair {
val deviceState = device.context.state.value