Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
MasterFIP - Testing
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
MasterFIP - Testing
Commits
5e3ad9d8
Commit
5e3ad9d8
authored
Jul 27, 2016
by
Marek Gumiński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug in spec identification. Now board may contain '-' in name
parent
53e5201e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
spec.py
python/spec.py
+3
-2
No files found.
python/spec.py
View file @
5e3ad9d8
...
...
@@ -100,8 +100,9 @@ class spec:
if
bus
==
-
1
:
# this file has name in format of <string>-<id>
# so name must by splitted with '-'
# id is element nr 1
bus
=
string
.
split
(
devices
[
0
],
'-'
)[
1
]
# id is the last element (if string contain '-' there may be more then 2 elements)
# list[-1] is a last element of list in python
bus
=
string
.
split
(
devices
[
0
],
'-'
)[
-
1
]
# id is in string hex format ie 0100
# got to take first two chars and convert to int
return
int
(
bus
[
0
:
2
],
16
)
...
...
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