Serial.flush() does not clear buffer but serial_flush() which is my defined function suppose to do that.