From 0aaf9e31bd69c60645be238bafb3a43d9845ecb5 Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Sat, 18 Jan 2020 17:07:31 +0100 Subject: [PATCH] gowin: displays userCode only in verbose mode --- gowin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gowin.cpp b/gowin.cpp index 3fcdae8..a0e2974 100644 --- a/gowin.cpp +++ b/gowin.cpp @@ -128,7 +128,8 @@ void Gowin::programFlash() return; wr_rd(RELOAD, NULL, 0, NULL, 0); wr_rd(NOOP, NULL, 0, NULL, 0); - printf("%08x\n", readUserCode()); + if (_verbose) + printInfo("%08x\n", readUserCode()); } void Gowin::program(unsigned int offset)