beaglebone: solved bug in leds file open