This is a piece of code from serial communication.
It gets data from the usb and returns them.
The problem is that it for some reason places ffffff at random pieces of the correct code.
How can i adjust it so it forgets the ffffff?
the serial communication is devided in 3 parts: opening, sending to it and recieving. this part has to recieve data from the serial port and returns the data recieved from the port as the string code.
only problem with it is that i think that there is something wrong with it: it places randoms f's inside the string recieved from the port.
so my question is: it the code wrong, is some sort of filter forgotten? , ....