c# program can now use firmware, but buffer issue