wifinina: only add generated strings when using wifidebug tag

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram
2023-05-01 20:42:53 +02:00
committed by Ron Evans
parent bc9177726d
commit 9955e09466
5 changed files with 9 additions and 1 deletions
+2
View File
@@ -1,3 +1,5 @@
//go:build wifidebug
// Code generated by "stringer -type=CommandType -trimprefix=Cmd"; DO NOT EDIT.
package wifinina
+2
View File
@@ -1,3 +1,5 @@
//go:build wifidebug
// Code generated by "stringer -type=ConnectionStatus -trimprefix=Status"; DO NOT EDIT.
package wifinina
+2
View File
@@ -1,3 +1,5 @@
//go:build wifidebug
// Code generated by "stringer -type=EncryptionType -trimprefix=EncType"; DO NOT EDIT.
package wifinina
+2
View File
@@ -1,3 +1,5 @@
//go:build wifidebug
// Code generated by "stringer -type=TCPState -trimprefix=TCPState"; DO NOT EDIT.
package wifinina
+1 -1
View File
@@ -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()