Skip to content

Commit

Permalink
修复带校验位时空格发送错误
Browse files Browse the repository at this point in the history
  • Loading branch information
keysking committed May 9, 2023
1 parent b092f07 commit aa5b45a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/SendPanel/SendPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { useRecordStore } from "@/store/useRecordStore";
import { useSerialStore } from "@/store/useSerialStore";
import { useSettingStore } from "@/store/useSettingStore";
import { useMagicKeys } from "@Vueuse/core";
import { useMagicKeys } from "@vueuse/core";
import { useCheckDigit } from "@/utils/useCheckDigit/useCheckDigit";
import { useDataCode } from "@/utils/useDataCode/useDataCode";
Expand All @@ -29,7 +29,7 @@ const sendBuffer = computed(() => {
if (sendType.value == "hex") {
if (checkDigit.value) {
return Uint8Array.from([
...hexStringToBuffer(sendData.value.replace(" ", "")),
...hexStringToBuffer(sendData.value.replaceAll(" ", "")),
...checkDigit.value,
]);
}
Expand Down

0 comments on commit aa5b45a

Please sign in to comment.