Added WCH-Link alternative firmware version to logs
This commit is contained in:
@@ -15,6 +15,10 @@ namespace DebugToolDrivers::Wch
|
||||
return std::to_string(this->major) + "." + std::to_string(this->minor);
|
||||
}
|
||||
|
||||
[[nodiscard]] std::string toAlternativeString() const {
|
||||
return "v" + std::to_string(this->major * 10 + this->minor);
|
||||
}
|
||||
|
||||
bool operator == (const WchFirmwareVersion& other) const {
|
||||
return this->major == other.major && this->minor == other.minor;
|
||||
}
|
||||
|
||||
@@ -92,7 +92,10 @@ namespace DebugToolDrivers::Wch
|
||||
);
|
||||
}
|
||||
|
||||
Logger::info("WCH-Link firmware version: " + deviceInfo.firmwareVersion.toString());
|
||||
Logger::info(
|
||||
"WCH-Link firmware version: " + deviceInfo.firmwareVersion.toString() + " ("
|
||||
+ deviceInfo.firmwareVersion.toAlternativeString() + ")"
|
||||
);
|
||||
}
|
||||
|
||||
bool WchLinkBase::isInitialised() const {
|
||||
|
||||
Reference in New Issue
Block a user