I'm using the command
Open COM2:115200,N,8,1 for Binary Access Read Write As #1
Before reading using the Get #1, , byte_variable_name I would like to clear what's in the buffer. Excel crashes if I read too many bytes that doesn't exist in the buffer.
Would the Seek command help me? Seek requires a starting location, which I don't know without knowing the length of data in the buffer.
Any ideas would be helpful.
Thanks.
Open COM2:115200,N,8,1 for Binary Access Read Write As #1
Before reading using the Get #1, , byte_variable_name I would like to clear what's in the buffer. Excel crashes if I read too many bytes that doesn't exist in the buffer.
Would the Seek command help me? Seek requires a starting location, which I don't know without knowing the length of data in the buffer.
Any ideas would be helpful.
Thanks.