1
0
Fork 0
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:
Claes Jakobsson 2015-07-10 18:58:07 +02:00
parent 5065e49386
commit 7cffa7f1e5
4 changed files with 7 additions and 7 deletions

View file

@ -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},