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
|
@ -95,7 +95,7 @@ var ledMap = embd.LEDMap{
|
|||
"beaglebone:green:usr3": []string{"3", "USR3", "usr3"},
|
||||
}
|
||||
|
||||
var spiDeviceMinor byte = 1
|
||||
var spiDeviceMinor int = 1
|
||||
|
||||
func ensureFeatureEnabled(id string) error {
|
||||
glog.V(3).Infof("bbb: enabling feature %v", id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue