diff --git a/pw_fastboot/fastboot_device.cc b/pw_fastboot/fastboot_device.cc index 0d0ff3d66..bad15a56f 100644 --- a/pw_fastboot/fastboot_device.cc +++ b/pw_fastboot/fastboot_device.cc @@ -137,7 +137,7 @@ void Device::ExecuteCommands() { std::vector args; std::string cmd_name; - if (stringutils::StartsWith(cmd_name, "oem ")) { + if (stringutils::StartsWith(command, "oem ")) { args = {command}; cmd_name = FB_CMD_OEM; } else {