mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-04 15:07:46 +00:00
wifinina: only add generated strings when using wifidebug tag
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
//go:build wifidebug
|
||||
|
||||
// Code generated by "stringer -type=CommandType -trimprefix=Cmd"; DO NOT EDIT.
|
||||
|
||||
package wifinina
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
//go:build wifidebug
|
||||
|
||||
// Code generated by "stringer -type=ConnectionStatus -trimprefix=Status"; DO NOT EDIT.
|
||||
|
||||
package wifinina
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
//go:build wifidebug
|
||||
|
||||
// Code generated by "stringer -type=EncryptionType -trimprefix=EncType"; DO NOT EDIT.
|
||||
|
||||
package wifinina
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
//go:build wifidebug
|
||||
|
||||
// Code generated by "stringer -type=TCPState -trimprefix=TCPState"; DO NOT EDIT.
|
||||
|
||||
package wifinina
|
||||
|
||||
@@ -164,7 +164,7 @@ func (d *Device) Configure() {
|
||||
|
||||
func (d *Device) StartClient(hostname string, addr uint32, port uint16, sock uint8, mode uint8) error {
|
||||
if _debug {
|
||||
fmt.Printf("[StartClient] hostname: %s addr: % 02X, port: %d, sock: %d\r\n", hostname, addr, port, sock)
|
||||
fmt.Printf("[StartClient] hostname: %s addr: %02X, port: %d, sock: %d\r\n", hostname, addr, port, sock)
|
||||
}
|
||||
if err := d.waitForChipSelect(); err != nil {
|
||||
d.spiChipDeselect()
|
||||
|
||||
Reference in New Issue
Block a user