From 8a4a0ff01738e694eb6f4ae7c06c4dc0f1e20b4a Mon Sep 17 00:00:00 2001 From: sago35 Date: Sun, 4 Jul 2021 11:01:04 +0900 Subject: [PATCH] rtl8720dn: add info when debug mode is enabled --- examples/rtl8720dn/webclient-tinyterm/main.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/examples/rtl8720dn/webclient-tinyterm/main.go b/examples/rtl8720dn/webclient-tinyterm/main.go index 9b35cd6..d2defef 100644 --- a/examples/rtl8720dn/webclient-tinyterm/main.go +++ b/examples/rtl8720dn/webclient-tinyterm/main.go @@ -12,10 +12,11 @@ import ( ) // You can override the setting with the init() in another source code. +// If debug is enabled, a serial connection is required. // func init() { // ssid = "your-ssid" // password = "your-password" -// debug = true +// debug = false // true // server = "tinygo.org" // } @@ -63,6 +64,10 @@ func main() { func run() error { fmt.Fprintf(terminal, "setupRTL8720DN()\r\n") + if debug { + fmt.Fprintf(terminal, "Running in debug mode.\r\n") + fmt.Fprintf(terminal, "A serial connection is required to continue execution.\r\n") + } rtl, err := setupRTL8720DN() if err != nil { return err