Support for a number of AVRDU/EA/EB targets
This commit is contained in:
@@ -9,5 +9,7 @@ enum AvrFamily: string
|
||||
case DB = 'DB';
|
||||
case DA = 'DA';
|
||||
case DD = 'DD';
|
||||
case DU = 'DU';
|
||||
case EA = 'EA';
|
||||
case EB = 'EB';
|
||||
}
|
||||
|
||||
@@ -328,9 +328,17 @@ class AtdfService
|
||||
return AvrFamily::DD;
|
||||
}
|
||||
|
||||
if ($atdfFamilyName === 'avr du' || substr($atdfTargetName, 5, 2) === 'du') {
|
||||
return AvrFamily::DU;
|
||||
}
|
||||
|
||||
if ($atdfFamilyName === 'avr ea' || substr($atdfTargetName, 5, 2) === 'ea') {
|
||||
return AvrFamily::EA;
|
||||
}
|
||||
|
||||
if ($atdfFamilyName === 'avr eb' || substr($atdfTargetName, 5, 2) === 'eb') {
|
||||
return AvrFamily::EB;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
@@ -1059,7 +1067,7 @@ class AtdfService
|
||||
|
||||
return new Variant(
|
||||
str_replace(
|
||||
'-',
|
||||
['-', '/'],
|
||||
'_',
|
||||
strtolower($attributes['ordercode'] ?? $attributes['name'] ?? '')
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user