Thanks for that - I'll definitely check all my array bounds and assignments again to make sure I'm not making a mess of that somewhere.
I feel a bit thick for having never come across Serial.flush() before, but I'll give that a go, too and see what difference it makes - unfortunately, I haven't got an Arduino handy at the moment to upload my code to and try it...
Thanks very much for your help with this ![]()