mirror of
https://github.com/kidoman/embd
synced 2025-07-03 11:57:38 +02:00
On some platform spidev devices has a name whos minor is > 255. Use an int instead of byte to set ID
This commit is contained in:
parent
5065e49386
commit
7cffa7f1e5
4 changed files with 7 additions and 7 deletions
|
@ -13,7 +13,7 @@ import (
|
|||
"github.com/kidoman/embd/host/generic"
|
||||
)
|
||||
|
||||
var spiDeviceMinor = byte(0)
|
||||
var spiDeviceMinor int = 0
|
||||
|
||||
var rev1Pins = embd.PinMap{
|
||||
&embd.PinDesc{ID: "P1_3", Aliases: []string{"0", "GPIO_0", "SDA", "I2C0_SDA"}, Caps: embd.CapDigital | embd.CapI2C, DigitalLogical: 0},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue