Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
033d6917
Commit
033d6917
authored
May 03, 2010
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Plain Diff
fixed recent minor bug in Cvpcb (footprint name error when read from netlist)
parents
97ede2a6
1b831ccc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
18 deletions
+5
-18
readschematicnetlist.cpp
cvpcb/readschematicnetlist.cpp
+5
-18
No files found.
cvpcb/readschematicnetlist.cpp
View file @
033d6917
...
@@ -90,7 +90,6 @@ int WinEDA_CvpcbFrame::ReadSchematicNetlist()
...
@@ -90,7 +90,6 @@ int WinEDA_CvpcbFrame::ReadSchematicNetlist()
{
{
char
alim
[
1024
];
char
alim
[
1024
];
int
idx
,
jj
,
k
,
l
;
int
idx
,
jj
,
k
,
l
;
char
*
LibName
;
char
cbuffer
[
BUFFER_CHAR_SIZE
];
/* temporary storage */
char
cbuffer
[
BUFFER_CHAR_SIZE
];
/* temporary storage */
char
*
ptchar
;
char
*
ptchar
;
COMPONENT
*
Cmp
;
COMPONENT
*
Cmp
;
...
@@ -193,10 +192,8 @@ int WinEDA_CvpcbFrame::ReadSchematicNetlist()
...
@@ -193,10 +192,8 @@ int WinEDA_CvpcbFrame::ReadSchematicNetlist()
while
(
Line
[
idx
]
==
' '
)
while
(
Line
[
idx
]
==
' '
)
idx
++
;
idx
++
;
/* idx points the component value */
/* idx points the component value.
LibName
=
Line
+
idx
;
* Read value */
/* Read value */
ptchar
=
strstr
(
&
Line
[
idx
],
" "
);
// Search end of value field (space)
ptchar
=
strstr
(
&
Line
[
idx
],
" "
);
// Search end of value field (space)
if
(
ptchar
==
0
)
if
(
ptchar
==
0
)
{
{
...
@@ -215,7 +212,9 @@ int WinEDA_CvpcbFrame::ReadSchematicNetlist()
...
@@ -215,7 +212,9 @@ int WinEDA_CvpcbFrame::ReadSchematicNetlist()
cbuffer
[
jj
++
]
=
Line
[
idx
];
cbuffer
[
jj
++
]
=
Line
[
idx
];
}
}
cbuffer
[
jj
]
=
0
;
cbuffer
[
jj
]
=
0
;
Cmp
->
m_Module
=
CONV_FROM_UTF8
(
cbuffer
);
// Copy footprint name:
if
(
m_isEESchemaNetlist
&&
(
strnicmp
(
cbuffer
,
"$noname"
,
7
)
!=
0
)
)
Cmp
->
m_Module
=
CONV_FROM_UTF8
(
cbuffer
);
if
(
(
Line
[
++
idx
]
==
'('
)
&&
(
Line
[
k
-
1
]
==
')'
)
)
if
(
(
Line
[
++
idx
]
==
'('
)
&&
(
Line
[
k
-
1
]
==
')'
)
)
{
{
...
@@ -261,18 +260,6 @@ int WinEDA_CvpcbFrame::ReadSchematicNetlist()
...
@@ -261,18 +260,6 @@ int WinEDA_CvpcbFrame::ReadSchematicNetlist()
m_components
.
push_back
(
Cmp
);
m_components
.
push_back
(
Cmp
);
if
(
m_isEESchemaNetlist
)
/* copy footprint name: */
{
if
(
strnicmp
(
LibName
,
"$noname"
,
7
)
!=
0
)
{
while
(
*
LibName
>
' '
)
{
Cmp
->
m_Module
.
Append
(
*
LibName
);
LibName
++
;
}
}
}
ReadPinConnection
(
netlistReader
,
Cmp
);
ReadPinConnection
(
netlistReader
,
Cmp
);
}
}
...
...
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