build: upgrade to go 1.17 and dependencies
This commit is contained in:
4
vendor/periph.io/x/periph/host/doc.go
generated
vendored
4
vendor/periph.io/x/periph/host/doc.go
generated
vendored
@@ -4,7 +4,7 @@
|
||||
|
||||
// Package host defines the host itself.
|
||||
//
|
||||
// The host is the machine where this code is running.
|
||||
// Is it now superseded by https://periph.io/x/host/v3 (or later).
|
||||
//
|
||||
// Subpackages contain the drivers that are loaded automatically.
|
||||
// See https://periph.io/news/2020/a_new_start/ for more details.
|
||||
package host
|
||||
|
7
vendor/periph.io/x/periph/host/pine64/pine64.go
generated
vendored
7
vendor/periph.io/x/periph/host/pine64/pine64.go
generated
vendored
@@ -6,12 +6,13 @@ package pine64
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
"periph.io/x/periph"
|
||||
"periph.io/x/periph/conn/pin"
|
||||
"periph.io/x/periph/conn/pin/pinreg"
|
||||
"periph.io/x/periph/host/allwinner"
|
||||
"periph.io/x/periph/host/distro"
|
||||
)
|
||||
|
||||
// Present returns true if running on a Pine64 board.
|
||||
@@ -19,9 +20,7 @@ import (
|
||||
// https://www.pine64.org/
|
||||
func Present() bool {
|
||||
if isArm {
|
||||
// This is iffy at best.
|
||||
_, err := os.Stat("/boot/pine64.dtb")
|
||||
return err == nil
|
||||
return strings.HasPrefix(distro.DTModel(), "Pine64")
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
Reference in New Issue
Block a user