Firmware updater: Prevent empty flashing jobs

This commit is contained in:
Vojtech Kral committed 2019-06-20 11:17:35 +02:00
1 parent 09f4831f4e
commit 09da7a84b5
3 files changed
+50 -11

No files matched your search

+3
View File
@@ -17,6 +17,9 @@ struct SerialPortInfo {
std::string friendly_name;
bool is_printer = false;
SerialPortInfo() {}
SerialPortInfo(std::string port) : port(port), friendly_name(std::move(port)) {}
bool id_match(unsigned id_vendor, unsigned id_product) const { return id_vendor == this->id_vendor && id_product == this->id_product; }
};