fix: DDS couldn't apply
This commit is contained in:
@@ -253,7 +253,7 @@ const waveformSlots = ref<
|
||||
{ name: "正弦波", type: "sine", data: null },
|
||||
{ name: "方波", type: "square", data: null },
|
||||
{ name: "三角波", type: "triangle", data: null },
|
||||
{ name: "", type: "", data: null },
|
||||
{ name: "锯齿波", type: "sawtooth", data: null },
|
||||
]);
|
||||
|
||||
// 绘图相关
|
||||
@@ -408,7 +408,7 @@ async function applyOutputWave() {
|
||||
eqps.boardPort,
|
||||
0,
|
||||
currentWaveformIndex.value,
|
||||
frequency.value * Math.pow(2, 32 - 20),
|
||||
toInteger( frequency.value * Math.pow(2, 32 - 20) / 10 ),
|
||||
);
|
||||
if (!ret) {
|
||||
dialog.error("应用失败");
|
||||
|
||||
Reference in New Issue
Block a user