mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-18 13:43:58 +00:00
wifinina: add 'unknown failure' reason code for AP connect
This commit is contained in:
@@ -263,6 +263,8 @@ func (err hwerr) Error() string {
|
|||||||
func (w *wifinina) reason() string {
|
func (w *wifinina) reason() string {
|
||||||
reason := w.getReasonCode()
|
reason := w.getReasonCode()
|
||||||
switch reason {
|
switch reason {
|
||||||
|
case 0:
|
||||||
|
return "unknown failure"
|
||||||
case 201:
|
case 201:
|
||||||
return "no AP found"
|
return "no AP found"
|
||||||
case 202:
|
case 202:
|
||||||
|
|||||||
Reference in New Issue
Block a user