switchState function is not needed in the bootloader
Mike's Taranis+ lcd driver