Merge "Removing {userspace} from reboot task'"

This commit is contained in:
Daniel Zheng 2023-04-26 17:57:22 +00:00 committed by Gerrit Code Review
commit ab4723f85f

View file

@ -65,7 +65,7 @@ RebootTask::RebootTask(const FlashingPlan* fp, const std::string& reboot_target)
: reboot_target_(reboot_target), fp_(fp){};
void RebootTask::Run() {
if ((reboot_target_ == "userspace" || reboot_target_ == "fastboot")) {
if (reboot_target_ == "fastboot") {
if (!is_userspace_fastboot()) {
reboot_to_userspace_fastboot();
fp_->fb->WaitForDisconnect();