diff --git a/fastboot/device/commands.cpp b/fastboot/device/commands.cpp index 2c9dec9fc..ca120c62a 100644 --- a/fastboot/device/commands.cpp +++ b/fastboot/device/commands.cpp @@ -261,7 +261,7 @@ bool SetActiveHandler(FastbootDevice* device, const std::vector& ar } // If the slot is not changing, do nothing. - if (slot == boot_control_hal->getCurrentSlot()) { + if (args[1] == device->GetCurrentSlot()) { return device->WriteOkay(""); }