Removed duplicate target variants from Insight window

This commit is contained in:
Nav
2021-06-20 22:57:09 +01:00
parent 57acda4b3b
commit a9c6171ac2
3 changed files with 52 additions and 0 deletions

View File

@@ -25,6 +25,16 @@ namespace Bloom::Targets
std::vector<std::string> functions;
TargetPinType type = TargetPinType::UNKNOWN;
bool operator == (const TargetPinDescriptor& pinDescriptor) const {
return this->number == pinDescriptor.number
&& this->supportsGpio == pinDescriptor.supportsGpio
&& this->name == pinDescriptor.name
&& this->padName == pinDescriptor.padName
&& this->functions == pinDescriptor.functions
&& this->type == pinDescriptor.type
;
}
};
struct TargetPinState