mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 01:21:20 -04:00
tune when successfully docked
This commit is contained in:
@@ -141,6 +141,14 @@ export default function DriveDockAction({
|
||||
useEffect(() => {
|
||||
if (!manualAssistActive) return;
|
||||
if (!charging) return;
|
||||
actions.sendSong(
|
||||
[
|
||||
{ note: 79, duration: 10 },
|
||||
{ note: 84, duration: 10 },
|
||||
{ note: 88, duration: 14 },
|
||||
],
|
||||
{ slot: 1 },
|
||||
);
|
||||
actions.setManualDockAssistActive(false);
|
||||
}, [actions, charging, manualAssistActive]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user