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
d4bfa450
Commit
d4bfa450
authored
Nov 17, 2011
by
Vladimir Uryvaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Debug bug:) fix. Wayne found it.
parent
1ef58372
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
6 deletions
+14
-6
lengthpcb.h
include/lengthpcb.h
+12
-4
class_pad.cpp
pcbnew/class_pad.cpp
+1
-1
specctra_export.cpp
pcbnew/specctra_export.cpp
+1
-1
No files found.
include/lengthpcb.h
View file @
d4bfa450
...
...
@@ -25,26 +25,34 @@ typedef LENGTH< double, 1 > LENGTH_PCB_DBL;
#define TO_LEGACY_LU_DBL( x ) \
( (double) ( LENGTH_PCB_DBL( x ) / PCB_LEGACY_UNIT( LENGTH_PCB_DBL ) ) )
static
LENGTH_PCB
from_legacy_lu
(
int
x
)
#ifdef __GNUC__
#define NOT_USED __attribute__ ((unused))
#else
#define NOT_USED
#endif
static
LENGTH_PCB
NOT_USED
from_legacy_lu
(
int
x
)
{
return
x
*
PCB_LEGACY_UNIT
(
LENGTH_PCB
);
}
static
LENGTH_PCB
from_legacy_lu
(
long
x
)
static
LENGTH_PCB
NOT_USED
from_legacy_lu
(
long
x
)
{
return
x
*
PCB_LEGACY_UNIT
(
LENGTH_PCB
);
}
static
LENGTH_PCB
from_legacy_lu
(
double
x
)
static
LENGTH_PCB
NOT_USED
from_legacy_lu
(
double
x
)
{
return
LENGTH_PCB
(
x
*
PCB_LEGACY_UNIT
(
LENGTH_PCB_DBL
)
);
}
static
LENGTH_PCB_DBL
from_legacy_lu_dbl
(
double
x
)
static
LENGTH_PCB_DBL
NOT_USED
from_legacy_lu_dbl
(
double
x
)
{
return
x
*
LENGTH_UNITS
<
LENGTH_PCB_DBL
>::
inch
()
/
PCB_LEGACY_INCH_SCALE
;
}
#undef NOT_USED
#define FROM_LEGACY_LU( x ) ( from_legacy_lu( x ) )
#define FROM_LEGACY_LU_DBL( x ) ( from_legacy_lu_dbl( x ) )
...
...
pcbnew/class_pad.cpp
View file @
d4bfa450
...
...
@@ -988,7 +988,7 @@ void D_PAD::Show( int nestLevel, std::ostream& os )
" num=
\"
"
<<
padname
<<
'"'
<<
" net=
\"
"
<<
m_Netname
.
mb_str
()
<<
'"'
<<
" netcode=
\"
"
<<
GetNet
()
<<
'"'
<<
" layerMask=
\"
"
<<
layerMask
<<
'"'
<<
m_Pos
<<
"/>
\n
"
;
" layerMask=
\"
"
<<
layerMask
<<
'"'
<<
TO_LEGACY_LU_WXP
(
m_Pos
)
<<
"/>
\n
"
;
// NestedSpace( nestLevel+1, os ) << m_Text.mb_str() << '\n';
...
...
pcbnew/specctra_export.cpp
View file @
d4bfa450
...
...
@@ -479,7 +479,7 @@ PADSTACK* SPECCTRA_DB::makePADSTACK( BOARD* aBoard, D_PAD* aPad )
polygon
->
AppendPoint
(
lowerRight
);
}
D
(
printf
(
"m_DeltaSize: %d,%d
\n
"
,
TO_LEGACY_LU
(
aPad
->
m_DeltaSize
.
x
),
TO_LEGACY_LU
(
aPad
->
m_DeltaSize
.
y
)
);)
D
(
printf
(
"m_DeltaSize: %d,%d
\n
"
,
TO_LEGACY_LU
(
aPad
->
m_DeltaSize
.
x
()
),
TO_LEGACY_LU
(
aPad
->
m_DeltaSize
.
y
()
)
);)
// this string _must_ be unique for a given physical shape
snprintf
(
name
,
sizeof
(
name
),
"Trapz%sPad_%.6gx%.6g_%c%.6gx%c%.6g_mil"
,
...
...
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