Fix FLASH_DEVICE definition