Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alexey Shapovalov
noc
Commits
a0ae0f60
Verified
Commit
a0ae0f60
authored
Jan 28, 2022
by
Andrey Vertiprahov
Browse files
Eltex.MES. Fix detect profile typo.
parent
2ad36d1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
sa/profiles/Eltex/MES/profile.py
View file @
a0ae0f60
...
...
@@ -99,12 +99,13 @@ class Profile(BaseProfile):
"116"
:
"MES-3308F"
,
"120"
:
"MES-3348F"
,
"136"
:
"MES-5316A"
,
"190"
:
(
"MES-3324F"
,
"rev.B"
),
# rev.B
"190"
:
"MES-3324F"
,
# rev.B
}
REVISIONS
=
{
"190"
:
"rev.B"
}
def
get_platform
(
self
,
s
):
platform
,
*
revision
=
self
.
PLATFORMS
.
get
(
s
)
return
platform
,
revision
[
0
]
if
revision
else
None
return
self
.
PLATFORMS
.
get
(
s
),
self
.
REVISIONS
.
get
(
s
)
INTERFACE_TYPES
=
{
"as"
:
"physical"
,
# Async
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment