beaglebone: solved bug in mode assignment