Page 2 of 2

Re: SRF Receiver!

Posted: Sun Feb 02, 2025 2:24 pm
by jgu1
Hi!

The component work fine ;) I have a project where I send and receive some string and number. Sometime when I send a new data it is the same as past even it is new data, I think it is because the old data in the Buffer still is there.

How can I delete or clear the Buffer (I use arduino) I have seach around and find this Command: Serial.flush() and try to put it in a C kode box in FC, but get error when compiling. I know I have to add something in the Complemetery code in Other options, but what? Please any guide :D Or other way to clear the buffer.

Maybe a Component macro for Flush for Pic and arduino, if this is possible

Thank“s in advance

Jorgen