修复连续采集时没有时间间隔导致通讯失败从而导致无有法正常连续采集的问题 修改如下
if (this.caijidirection=="UP")
{
await this.GetDataDrection("UP",caijiavgNumber);
await delay(100)
}
if (this.caijidirection=="DOWN")
{ await this.GetDataDrection("DOWN",caijiavgNumber);
await delay(100)
}
if (this.caijidirection=="ALL")
{
await this.GetDataDrection("UP",caijiavgNumber);
await delay(100)
await this.GetDataDrection("DOWN",caijiavgNumber);
await delay(100)
}
if(this.caijidirection=="DARK")
{
await this.GetDataDrection("DARK",caijiavgNumber);
await delay(100)
}
This commit is contained in:
@ -8,7 +8,7 @@
|
|||||||
},
|
},
|
||||||
"package": {
|
"package": {
|
||||||
"productName": "SpectralPlot",
|
"productName": "SpectralPlot",
|
||||||
"version": "0.4.14"
|
"version": "0.4.141"
|
||||||
},
|
},
|
||||||
"tauri": {
|
"tauri": {
|
||||||
|
|
||||||
|
|||||||
@ -92,18 +92,27 @@ export default {
|
|||||||
if (caijimoshi=="advanced_mode")
|
if (caijimoshi=="advanced_mode")
|
||||||
{
|
{
|
||||||
if (this.caijidirection=="UP")
|
if (this.caijidirection=="UP")
|
||||||
await this.GetDataDrection("UP",caijiavgNumber);
|
{
|
||||||
|
await this.GetDataDrection("UP",caijiavgNumber);
|
||||||
|
await delay(100)
|
||||||
|
|
||||||
|
}
|
||||||
if (this.caijidirection=="DOWN")
|
if (this.caijidirection=="DOWN")
|
||||||
await this.GetDataDrection("DOWN",caijiavgNumber);
|
{ await this.GetDataDrection("DOWN",caijiavgNumber);
|
||||||
|
await delay(100)
|
||||||
|
}
|
||||||
|
|
||||||
if (this.caijidirection=="ALL")
|
if (this.caijidirection=="ALL")
|
||||||
{
|
{
|
||||||
await this.GetDataDrection("UP",caijiavgNumber);
|
await this.GetDataDrection("UP",caijiavgNumber);
|
||||||
await delay(1000)
|
await delay(100)
|
||||||
await this.GetDataDrection("DOWN",caijiavgNumber);
|
await this.GetDataDrection("DOWN",caijiavgNumber);
|
||||||
|
await delay(100)
|
||||||
}
|
}
|
||||||
if(this.caijidirection=="DARK")
|
if(this.caijidirection=="DARK")
|
||||||
{
|
{
|
||||||
await this.GetDataDrection("DARK",caijiavgNumber);
|
await this.GetDataDrection("DARK",caijiavgNumber);
|
||||||
|
await delay(100)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user