fix TARGET_OTA_ASSERT_DEVICE behavior