1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-22 09:54:27 +00:00

Firmware updater: Prevent empty flashing jobs

This commit is contained in:
Vojtech Kral
2019-06-07 17:01:19 +02:00
parent 09f4831f4e
commit 09da7a84b5
3 changed files with 50 additions and 11 deletions
+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; }
};