mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-21 15:09:00 +00:00
rtl8720dn: add info when debug mode is enabled
This commit is contained in:
@@ -12,10 +12,11 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// You can override the setting with the init() in another source code.
|
// You can override the setting with the init() in another source code.
|
||||||
|
// If debug is enabled, a serial connection is required.
|
||||||
// func init() {
|
// func init() {
|
||||||
// ssid = "your-ssid"
|
// ssid = "your-ssid"
|
||||||
// password = "your-password"
|
// password = "your-password"
|
||||||
// debug = true
|
// debug = false // true
|
||||||
// server = "tinygo.org"
|
// server = "tinygo.org"
|
||||||
// }
|
// }
|
||||||
|
|
||||||
@@ -63,6 +64,10 @@ func main() {
|
|||||||
|
|
||||||
func run() error {
|
func run() error {
|
||||||
fmt.Fprintf(terminal, "setupRTL8720DN()\r\n")
|
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()
|
rtl, err := setupRTL8720DN()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
Reference in New Issue
Block a user