Firing in sequence mode and then reading the pin before the sequence is complete is currently allowed. This should not be possible; the pin diode readout may not actually be the averaged reading (undefined behaviour). Two updates are needed:
Wait until sequence is complete and then read; if reading taken before end of sequence then an invalid flag should be applied to the pin reading.
Character should be flushed to buffer following completed sequence (firing via "g" command), only then should pin average commands be sent.
I think this has been implemented. See "Waiting for sequence to finish..." type output when attempting to read the PIN values pre-emptively. Suggest closing.
Firing in sequence mode and then reading the pin before the sequence is complete is currently allowed. This should not be possible; the pin diode readout may not actually be the averaged reading (undefined behaviour). Two updates are needed: