Update logic_analyzer.cpp

call writePNG() function in logic_analyzer instead of in protocols