Updated application to code to accomodate changes to TDF format (new pad elements and changes to variant elements)

This commit is contained in:
Nav
2024-08-16 22:50:06 +01:00
parent 129e54dd2d
commit c662e946ca
35 changed files with 534 additions and 311 deletions

View File

@@ -1,14 +1,15 @@
#include "TargetPinDescriptor.hpp"
#include "src/Services/StringService.hpp"
namespace Targets
{
TargetPinDescriptor::TargetPinDescriptor(
const std::string& padName,
const std::string& position,
TargetPinType type
const std::optional<std::string>& padKey
)
: padName(padName)
, position(position)
, type(type)
: position(position)
, numericPosition(Services::StringService::toUint16(this->position, 10))
, padKey(padKey)
{}
}