San buffer not clearing after each scan

Converting COM to USB, scan buffer never clears resulting in each scan appending it’s data to the last

Update - The issue is that the terminater changed between COM and USB