Skip to content

Commit

Permalink
beaglebone: corrected platform version mapping, thanks @wfernandes
Browse files Browse the repository at this point in the history
Signed-off-by: deadprogram <[email protected]>
  • Loading branch information
deadprogram committed Nov 30, 2016
1 parent 20235ff commit 37882b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platforms/beaglebone/beaglebone_adaptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (b *Adaptor) setSlots() {
slots := "/sys/devices/bone_capemgr.*"

b.kernel = getKernel()
if string(b.kernel[0]) == "4" {
if b.kernel[:1] == "4" {
ocp = "/sys/devices/platform/ocp/ocp*"
slots = "/sys/devices/platform/bone_capemgr"
}
Expand Down

0 comments on commit 37882b1

Please sign in to comment.