mirror of
https://github.com/TaterTotterson/microWakeWord-Trainer-Nvidia-Docker.git
synced 2026-06-12 20:10:19 -06:00
wake sound
This commit is contained in:
@@ -1938,7 +1938,16 @@
|
||||
groups.get(section).push(field);
|
||||
});
|
||||
|
||||
$("firmwareFields").innerHTML = Array.from(groups.entries()).map(([section, rows]) => `
|
||||
const orderedGroups = Array.from(groups.entries());
|
||||
const wakeSoundIndex = orderedGroups.findIndex(([section]) => section === "Wake Sound");
|
||||
const microWakeWordIndex = orderedGroups.findIndex(([section]) => section === "Micro Wake Word");
|
||||
if (wakeSoundIndex >= 0 && microWakeWordIndex >= 0 && wakeSoundIndex !== microWakeWordIndex + 1) {
|
||||
const [wakeSoundGroup] = orderedGroups.splice(wakeSoundIndex, 1);
|
||||
const targetIndex = orderedGroups.findIndex(([section]) => section === "Micro Wake Word");
|
||||
orderedGroups.splice(targetIndex + 1, 0, wakeSoundGroup);
|
||||
}
|
||||
|
||||
$("firmwareFields").innerHTML = orderedGroups.map(([section, rows]) => `
|
||||
<section class="firmwareSettingsSection">
|
||||
<div class="row space">
|
||||
<h3 style="margin:0;">${escapeHtml(section)}</h3>
|
||||
|
||||
Reference in New Issue
Block a user