frontend set correct port openarms mini

This commit is contained in:
croissant
2025-11-24 11:24:10 +01:00
committed by Michel Aractingi
parent e38f56c071
commit bf08733068
+8
View File
@@ -360,6 +360,14 @@ function App() {
// Update config and save
const updateConfig = (key, value) => {
const updated = { ...config, [key]: value };
if (key === 'leader_type') {
if (value === 'openarms_mini') {
updated.follower_left = 'can0';
updated.follower_right = 'can1';
}
}
setConfig(updated);
saveConfig(updated);
};