mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-09 09:23:39 +00:00
s/ConnectTimeo/ConnectTimeout, s/WatchdogTimeo/WatchdogTimeout/
This commit is contained in:
@@ -23,7 +23,7 @@ var cfg = rtl8720dn.Config{
|
||||
Rx: machine.PC24,
|
||||
Baudrate: 614400,
|
||||
// Watchdog (set to 0 to disable)
|
||||
WatchdogTimeo: time.Duration(20 * time.Second),
|
||||
WatchdogTimeout: time.Duration(20 * time.Second),
|
||||
}
|
||||
|
||||
var netdev = rtl8720dn.New(&cfg)
|
||||
|
||||
@@ -27,7 +27,7 @@ var cfg = wifinina.Config{
|
||||
Gpio0: machine.NINA_GPIO0,
|
||||
Resetn: machine.NINA_RESETN,
|
||||
// Watchdog (set to 0 to disable)
|
||||
WatchdogTimeo: time.Duration(20 * time.Second),
|
||||
WatchdogTimeout: time.Duration(20 * time.Second),
|
||||
}
|
||||
|
||||
var netdev = wifinina.New(&cfg)
|
||||
|
||||
Reference in New Issue
Block a user