mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-17 13:23:26 +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.
|
// Code generated by "stringer -type=CommandType -trimprefix=Cmd"; DO NOT EDIT.
|
||||||
|
|
||||||
package wifinina
|
package wifinina
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//go:build wifidebug
|
||||||
|
|
||||||
// Code generated by "stringer -type=ConnectionStatus -trimprefix=Status"; DO NOT EDIT.
|
// Code generated by "stringer -type=ConnectionStatus -trimprefix=Status"; DO NOT EDIT.
|
||||||
|
|
||||||
package wifinina
|
package wifinina
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//go:build wifidebug
|
||||||
|
|
||||||
// Code generated by "stringer -type=EncryptionType -trimprefix=EncType"; DO NOT EDIT.
|
// Code generated by "stringer -type=EncryptionType -trimprefix=EncType"; DO NOT EDIT.
|
||||||
|
|
||||||
package wifinina
|
package wifinina
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//go:build wifidebug
|
||||||
|
|
||||||
// Code generated by "stringer -type=TCPState -trimprefix=TCPState"; DO NOT EDIT.
|
// Code generated by "stringer -type=TCPState -trimprefix=TCPState"; DO NOT EDIT.
|
||||||
|
|
||||||
package wifinina
|
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 {
|
func (d *Device) StartClient(hostname string, addr uint32, port uint16, sock uint8, mode uint8) error {
|
||||||
if _debug {
|
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 {
|
if err := d.waitForChipSelect(); err != nil {
|
||||||
d.spiChipDeselect()
|
d.spiChipDeselect()
|
||||||
|
|||||||
Reference in New Issue
Block a user