mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-21 19:49:49 +00:00
frontend set correct port openarms mini
This commit is contained in:
committed by
Michel Aractingi
parent
e38f56c071
commit
bf08733068
@@ -360,6 +360,14 @@ function App() {
|
|||||||
// Update config and save
|
// Update config and save
|
||||||
const updateConfig = (key, value) => {
|
const updateConfig = (key, value) => {
|
||||||
const updated = { ...config, [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);
|
setConfig(updated);
|
||||||
saveConfig(updated);
|
saveConfig(updated);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user