Skip to content

Commit 284994f

Browse files
committed
fix(configurator): disable configurator version check
1 parent 9c11c1d commit 284994f

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

configurator/src/App.tsx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { useEffect } from "react";
2-
import { Routes, Route, Navigate, useNavigate } from "react-router-dom";
1+
import { Routes, Route, Navigate } from "react-router-dom";
32

43
import { useStore } from "./store";
54
import { ConfiguratorPage } from "./components/ConfiguratorPage";
@@ -10,14 +9,7 @@ import { UpdatePage } from "./components/UpdatePage";
109
import { TroubleshootingPage } from "./components/TroubleshootingPage";
1110

1211
const App = () => {
13-
const { usbDevice, deviceVersion } = useStore();
14-
const navigate = useNavigate();
15-
16-
useEffect(() => {
17-
if (deviceVersion && deviceVersion !== "1.3.0") {
18-
navigate("/update");
19-
}
20-
}, [deviceVersion, navigate]);
12+
const { usbDevice } = useStore();
2113

2214
return (
2315
<Routes>

configurator/src/components/UpdatePage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ export const UpdatePage = () => {
2121
</p>
2222
<ButtonPrimary
2323
as="a"
24-
href="https://github.com/ATOVproject/faderpunk/releases/download/faderpunk-v1.3.0/faderpunk.uf2"
24+
href="https://github.com/ATOVproject/faderpunk/releases/download/faderpunk-v1.4.0/faderpunk.uf2"
2525
>
26-
Download v1.3.0
26+
Download v1.4.0
2727
</ButtonPrimary>
2828
<UpdateGuide />
2929
</Layout>

0 commit comments

Comments
 (0)