diff options
Diffstat (limited to 'machxo2')
-rw-r--r-- | machxo2/arch.cc | 4 | ||||
-rw-r--r-- | machxo2/main.cc | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/machxo2/arch.cc b/machxo2/arch.cc index 481d15ee..385b776f 100644 --- a/machxo2/arch.cc +++ b/machxo2/arch.cc @@ -58,8 +58,8 @@ static void get_chip_info(std::string device, const ChipInfoPOD **chip_info, con for (auto &pkg : chip.packages) { for (auto &speedgrade : chip.speed_grades) { for (auto &rating : chip.suffixes) { - std::string name = stringf("%s-%d%s%s", chip.name.get(), speedgrade.speed, pkg.short_name.get(), rating.suffix.get()); - if (device == name) { + std::string devname = stringf("%s-%d%s%s", chip.name.get(), speedgrade.speed, pkg.short_name.get(), rating.suffix.get()); + if (device == devname) { *chip_info = db_ptr->get(); *package_info = nullptr; *package_name = pkg.name.get(); diff --git a/machxo2/main.cc b/machxo2/main.cc index e5b8176a..283bc59c 100644 --- a/machxo2/main.cc +++ b/machxo2/main.cc @@ -72,7 +72,7 @@ std::unique_ptr<Context> MachXO2CommandHandler::createContext(dict<std::string, exit(0); } if (!vm.count("device")) { - log_error("device must be specified on the command line (e.g. --device LCMXO2-7000HC-4TG144I)\n"); + log_error("device must be specified on the command line (e.g. --device LCMXO2-1200HC-4SG32C)\n"); } chipArgs.device = vm["device"].as<std::string>(); auto ctx = std::unique_ptr<Context>(new Context(chipArgs)); |