diff --git a/src/composables/stream.ts b/src/composables/stream.ts index 9d1bdce..e23b0aa 100644 --- a/src/composables/stream.ts +++ b/src/composables/stream.ts @@ -75,7 +75,7 @@ export const useRobotDataStream = ( if (status === 'OK') { parametersInStream.value.delete(parameter); if (parametersInStream.value.size === 0) { - ble.removeTxObserver(streamObserverUuid, streamCharacteristicId); + ble.removeTxObserver(streamCharacteristicId, streamObserverUuid); } return; diff --git a/src/pages/RuntimeStreamPage.vue b/src/pages/RuntimeStreamPage.vue index e900cbb..e88386f 100644 --- a/src/pages/RuntimeStreamPage.vue +++ b/src/pages/RuntimeStreamPage.vue @@ -307,15 +307,16 @@ const updateRuntimeParameters = async function () { const submitConfigForm = () => { if ([...parametersToStream.values()].some(({ interval }) => interval > 0)) { configForm.value.submit(new Event('submit')); - showConfigDialog.value = false; } else { showInvalidConfigMessage.value = true; } }; const loadStreamsPanel = () => { - setTimeout(() => (renderStreamsPanel.value = true), 10); + renderStreamsPanel.value = true; + showConfigDialog.value = false; }; + const closeStreamsPanel = () => { renderStreamsPanel.value = false; showControlsDialog.value = false;