Skip to content

Commit

Permalink
Merge pull request #63 from Tamandutech/fix/inicializacao_de_transmis…
Browse files Browse the repository at this point in the history
…soes

Corrigir inicialização e finalização de transmissões
  • Loading branch information
Matheus-de-Sousa authored Feb 7, 2024
2 parents 290dfa9 + 87ea6d2 commit 5943311
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/composables/stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 3 additions & 2 deletions src/pages/RuntimeStreamPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5943311

Please sign in to comment.