From 19bb773e5b922250d3a3da7eba54a409710f8d89 Mon Sep 17 00:00:00 2001 From: Yurii Soldak Date: Tue, 11 May 2021 23:09:05 +0200 Subject: [PATCH] fix println + cleanup --- examples/wifinina/connect/main.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/examples/wifinina/connect/main.go b/examples/wifinina/connect/main.go index d42a01d..257030e 100644 --- a/examples/wifinina/connect/main.go +++ b/examples/wifinina/connect/main.go @@ -19,17 +19,13 @@ const pass = "" var ( // these are the default pins for the Arduino Nano33 IoT. - uart = machine.UART2 - tx = machine.NINA_TX - rx = machine.NINA_RX - spi = machine.NINA_SPI + spi = machine.NINA_SPI // this is the ESP chip that has the WIFININA firmware flashed on it adaptor *wifinina.Device ) func setup() { - uart.Configure(machine.UARTConfig{TX: tx, RX: rx}) // Configure SPI for 8Mhz, Mode 0, MSB First spi.Configure(machine.SPIConfig{ @@ -82,7 +78,7 @@ func printTime() { if err != nil { println("Unknown (error: ", err.Error(), ")") } - fmt.Printf("%v\n", time.Unix(int64(t), 0)) + println(time.Unix(int64(t), 0).String()) } func printMacAddress() {