mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-04 23:17:47 +00:00
rtl8720dn: add UDP close function
This commit is contained in:
@@ -227,7 +227,7 @@ func (r *RTL8720DN) DisconnectSocket() error {
|
||||
fmt.Printf("DisconnectSocket()\r\n")
|
||||
}
|
||||
switch r.connectionType {
|
||||
case ConnectionTypeTCP:
|
||||
case ConnectionTypeTCP, ConnectionTypeUDP:
|
||||
_, err := r.Rpc_lwip_close(r.socket)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user