elif board_id == ap_board.PYBOARD:
     from adafruit_blinka.board.pyboard import *
 
-elif detector.any_raspberry_pi_40_pin:
+elif detector.board.any_raspberry_pi_40_pin:
     from adafruit_blinka.board.raspi_40pin import *
 
 elif board_id == ap_board.BEAGLEBONE_BLACK: