Skip to content

Commit 6f27bbd

Browse files
timjarskyCopilot
andauthored
Update Packages/MIES/MIES_ForeignFunctionInterface.ipf
Co-authored-by: Copilot <[email protected]>
1 parent 687164e commit 6f27bbd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Packages/MIES/MIES_ForeignFunctionInterface.ipf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -476,21 +476,21 @@ Function FFI_WaitForIdle(string device, variable headstage)
476476
WAVE PD = P_GetPressureDataWaveRef(device)
477477

478478
// Fast path: already idle
479-
if(!PD[headstage][%OngoingPessurePulse])
479+
if(!PD[headstage][%OngoingPressurePulse])
480480
return 1
481481
endif
482482

483483
variable t0 = stopmstimer(-2)
484484
// Wait until the pulse finishes or timeout elapses
485485
do
486-
if(!PD[headstage][%OngoingPessurePulse])
486+
if(!PD[headstage][%OngoingPressurePulse])
487487
return 1
488488
endif
489489

490490
// Timeout check (treating stopmstimer(-2) deltas as milliseconds)
491491
if((stopmstimer(-2) - t0) > (kPressurePulseMaxMS + kPressureWaitSlackMS))
492492
// one last check before giving up
493-
return !PD[headstage][%OngoingPessurePulse]
493+
return !PD[headstage][%OngoingPressurePulse]
494494
endif
495495

496496
DoUpdate // yield to background tasks/UI

0 commit comments

Comments
 (0)