mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-11-25 21:46:30 +01:00
Firmware updater: Prevent empty flashing jobs
This commit is contained in:
1 parent
09f4831f4e
commit
09da7a84b5
3 files changed
+50
-11
No files matched your search
@@ -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; }
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user