Using interrupts with pause in blockly

TerryRy

Member
My question relates to what happens when an interrupt is triggered during a pause command. After the Interrupt procedure is finished will the program return to the same time point in the pause command (or perhaps the start or the end of the pause command).

thanks
 

hippy

Technical Support
Staff member
The PAUSE will be prematurely terminated and, upon return from the interrupt, the next command will be executed.
 

TerryRy

Member
Thanks hippy for your concise answer and inglewoodpete for the impact minimising approach.

I guess a question which follows from this is - which other commands are aborted mid-term? ie SERIN/SEROUT
 

hippy

Technical Support
Staff member
Only PAUSE, WAIT and TUNE commands can be interrupted mid-term. For al other commands (assuming interrupt conditions are met), the interrupt will be invoked when that command completes execution.
 
Top