Skip to content

Commit

Permalink
Fix non-linux init
Browse files Browse the repository at this point in the history
  • Loading branch information
gsexton committed Oct 21, 2024
1 parent 7722d7b commit c4e57a7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions gpioioctl/gpio_other.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ package gpioioctl

func init() {
if len(Chips) == 0 {
line := GPIOLine{
number: 0,
name: "DummyGPIOLine",
consumer: "",
edge: gpio.NoEdge,

Check failure on line 17 in gpioioctl/gpio_other.go

View workflow job for this annotation

GitHub Actions / test: macos-latest

undefined: gpio

Check failure on line 17 in gpioioctl/gpio_other.go

View workflow job for this annotation

GitHub Actions / test: windows-latest

undefined: gpio

Check failure on line 17 in gpioioctl/gpio_other.go

View workflow job for this annotation

GitHub Actions / lint: macos-latest

undefined: gpio

Check failure on line 17 in gpioioctl/gpio_other.go

View workflow job for this annotation

GitHub Actions / lint: macos-latest

undefined: gpio

Check failure on line 17 in gpioioctl/gpio_other.go

View workflow job for this annotation

GitHub Actions / lint: macos-latest

undefined: gpio

Check failure on line 17 in gpioioctl/gpio_other.go

View workflow job for this annotation

GitHub Actions / lint: macos-latest

undefined: gpio

Check failure on line 17 in gpioioctl/gpio_other.go

View workflow job for this annotation

GitHub Actions / lint: macos-latest

undefined: gpio

Check failure on line 17 in gpioioctl/gpio_other.go

View workflow job for this annotation

GitHub Actions / lint: macos-latest

undefined: gpio

Check failure on line 17 in gpioioctl/gpio_other.go

View workflow job for this annotation

GitHub Actions / lint: windows-latest

undefined: gpio

Check failure on line 17 in gpioioctl/gpio_other.go

View workflow job for this annotation

GitHub Actions / lint: windows-latest

undefined: gpio

Check failure on line 17 in gpioioctl/gpio_other.go

View workflow job for this annotation

GitHub Actions / lint: windows-latest

undefined: gpio

Check failure on line 17 in gpioioctl/gpio_other.go

View workflow job for this annotation

GitHub Actions / lint: windows-latest

undefined: gpio

Check failure on line 17 in gpioioctl/gpio_other.go

View workflow job for this annotation

GitHub Actions / lint: windows-latest

undefined: gpio

Check failure on line 17 in gpioioctl/gpio_other.go

View workflow job for this annotation

GitHub Actions / lint: windows-latest

undefined: gpio
pull: gpio.PullNoChange,

Check failure on line 18 in gpioioctl/gpio_other.go

View workflow job for this annotation

GitHub Actions / test: macos-latest

undefined: gpio

Check failure on line 18 in gpioioctl/gpio_other.go

View workflow job for this annotation

GitHub Actions / test: windows-latest

undefined: gpio

Check failure on line 18 in gpioioctl/gpio_other.go

View workflow job for this annotation

GitHub Actions / lint: macos-latest

undefined: gpio

Check failure on line 18 in gpioioctl/gpio_other.go

View workflow job for this annotation

GitHub Actions / lint: macos-latest

undefined: gpio

Check failure on line 18 in gpioioctl/gpio_other.go

View workflow job for this annotation

GitHub Actions / lint: macos-latest

undefined: gpio

Check failure on line 18 in gpioioctl/gpio_other.go

View workflow job for this annotation

GitHub Actions / lint: macos-latest

undefined: gpio

Check failure on line 18 in gpioioctl/gpio_other.go

View workflow job for this annotation

GitHub Actions / lint: macos-latest

undefined: gpio

Check failure on line 18 in gpioioctl/gpio_other.go

View workflow job for this annotation

GitHub Actions / lint: macos-latest

undefined: gpio

Check failure on line 18 in gpioioctl/gpio_other.go

View workflow job for this annotation

GitHub Actions / lint: windows-latest

undefined: gpio (compile)

Check failure on line 18 in gpioioctl/gpio_other.go

View workflow job for this annotation

GitHub Actions / lint: windows-latest

undefined: gpio (compile)

Check failure on line 18 in gpioioctl/gpio_other.go

View workflow job for this annotation

GitHub Actions / lint: windows-latest

undefined: gpio

Check failure on line 18 in gpioioctl/gpio_other.go

View workflow job for this annotation

GitHub Actions / lint: windows-latest

undefined: gpio

Check failure on line 18 in gpioioctl/gpio_other.go

View workflow job for this annotation

GitHub Actions / lint: windows-latest

undefined: gpio

Check failure on line 18 in gpioioctl/gpio_other.go

View workflow job for this annotation

GitHub Actions / lint: windows-latest

undefined: gpio
direction: LineDirNotSet,
}

chip := GPIOChip{name: "DummyGPIOChip",
path: "/dev/gpiochipdummy",
label: "Dummy GPIOChip for Testing Purposes",
Expand Down

0 comments on commit c4e57a7

Please sign in to comment.