File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -66,16 +66,6 @@ func (a *Adapter) Enable() error {
6666 AdapterConfig .CS .Configure (machine.PinConfig {Mode : machine .PinOutput })
6767 AdapterConfig .CS .Low ()
6868
69- if _debug {
70- println (
71- "tx:" , AdapterConfig .TX ,
72- "rx:" , AdapterConfig .RX ,
73- "baudrate:" , AdapterConfig .BaudRate ,
74- "cts:" , AdapterConfig .CTS ,
75- "rts:" , AdapterConfig .RTS ,
76- )
77- }
78-
7969 if AdapterConfig .ResetInverted {
8070 resetNINAInverted ()
8171 } else {
@@ -106,22 +96,12 @@ func (a *Adapter) Enable() error {
10696 AdapterConfig .CTS .Configure (machine.PinConfig {Mode : machine .PinInput })
10797 }
10898
109- if _debug {
110- println ("starting hci" )
111- }
11299 a .hci .start ()
113100
114- if _debug {
115- println ("reseting hci" )
116- }
117101 if err := a .hci .reset (); err != nil {
118102 return err
119103 }
120104
121- if _debug {
122- println ("hci reset successfully" )
123- }
124-
125105 time .Sleep (150 * time .Millisecond )
126106
127107 if err := a .hci .setEventMask (0x3FFFFFFFFFFFFFFF ); err != nil {
You can’t perform that action at this time.
0 commit comments