mirror of
https://github.com/soypat/lneto.git
synced 2026-08-22 07:29:04 +00:00
chore: bump minimum Go version to 1.24 (#85)
Signed-off-by: Marvin Drees <marvin.drees@9elements.com>
This commit is contained in:
+1
-1
@@ -147,7 +147,7 @@ func (phy *Device) ResetPHY() (err error) {
|
||||
const maxPolls = 50
|
||||
const resetTimeout = 500 * time.Millisecond // As per standard.
|
||||
var ctl BMCR
|
||||
for i := 0; i < maxPolls; i++ {
|
||||
for range maxPolls {
|
||||
time.Sleep(resetTimeout / maxPolls)
|
||||
ctl, err = phy.BasicControl()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user