new color for dock assist mode

This commit is contained in:
legop3
2026-05-17 21:57:38 -04:00
parent 3428fbd1cf
commit bf7d40be65
7 changed files with 21 additions and 17 deletions
@@ -31,8 +31,11 @@ export function useManualDockAssist(options = {}) {
useEffect(() => {
if (!manageLifecycle) return;
const justDocked = docked && !wasDockedRef.current;
const justUndocked = !docked && wasDockedRef.current;
if (active && justDocked) {
actions.sendSong([{ note: 84, duration: 6 }], { slot: 1 });
} else if (active && justUndocked) {
actions.sendSong([{ note: 72, duration: 6 }], { slot: 1 });
}
wasDockedRef.current = docked;
}, [actions, active, docked, manageLifecycle]);
@@ -62,4 +65,3 @@ export function useManualDockAssist(options = {}) {
[active, charging, docked, enterAssist, exitAssist, statusLabel, statusTone, toggleAssist, visible],
);
}