Check if BOARD_SUB is defined before trying to use it