Extract debug tool firmware version at startup
This commit is contained in:
@@ -59,6 +59,10 @@ namespace DebugToolDrivers::Wch
|
||||
return UsbDevice::getSerialNumber();
|
||||
}
|
||||
|
||||
std::string WchLinkBase::getFirmwareVersionString() {
|
||||
return "v" + this->getDeviceInfo().firmwareVersion.toString();
|
||||
}
|
||||
|
||||
const DeviceInfo& WchLinkBase::getDeviceInfo() const {
|
||||
if (!this->cachedDeviceInfo.has_value()) {
|
||||
this->cachedDeviceInfo = this->wchLinkInterface->getDeviceInfo();
|
||||
|
||||
Reference in New Issue
Block a user