Merge "fastbootd: use FastbootDevice::GetCurrentSlot to get current slot suffix"

This commit is contained in:
Treehugger Robot 2020-03-03 12:03:38 +00:00 committed by Gerrit Code Review
commit 220b6ebd05

View file

@ -261,7 +261,7 @@ bool SetActiveHandler(FastbootDevice* device, const std::vector<std::string>& ar
}
// If the slot is not changing, do nothing.
if (slot == boot_control_hal->getCurrentSlot()) {
if (args[1] == device->GetCurrentSlot()) {
return device->WriteOkay("");
}