mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 01:21:20 -04:00
give up for now
This commit is contained in:
@@ -32,10 +32,9 @@ export function useCommandPipeline() {
|
||||
}, [rosterEntry]);
|
||||
|
||||
const emitCommand = useCallback(
|
||||
(payload, cb, targetRoverId) => {
|
||||
const roverTarget = targetRoverId ?? roverId;
|
||||
if (!roverTarget) return;
|
||||
socket.emit('command', { roverId: roverTarget, ...payload }, cb);
|
||||
(payload, cb) => {
|
||||
if (!roverId) return;
|
||||
socket.emit('command', { roverId, ...payload }, cb);
|
||||
},
|
||||
[socket, roverId],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user