Skip to content

Commit caa37dc

Browse files
committed
Fixes for KiCad 9 support, bump version to 2.5.7
1 parent 46a5ba0 commit caa37dc

File tree

5 files changed

+15
-7
lines changed

5 files changed

+15
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77

8+
## [2.5.7] - 2025-02-11
9+
### Added
10+
* KiCad 9 experimental support fixes (WIP)
11+
812
## [2.5.6] - 2025-01-08
913
### Added
1014
* KiCad 9 experimental support (WIP)

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
kidiff (2.5.7-1) stable; urgency=medium
2+
3+
* Fix no copper layer detection, needed for KiCad 9
4+
5+
-- Salvador Eduardo Tropea <[email protected]> Tue, 11 Feb 2025 10:05:11 -0300
6+
17
kidiff (2.5.6-1) stable; urgency=medium
28

39
* KiCad 9 experimental support (WIP)

kicad-diff-init.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
__copyright__ = 'Copyright 2020, INTI'
1313
__credits__ = ['Salvador E. Tropea']
1414
__license__ = 'GPL 2.0'
15-
__version__ = '2.5.6'
15+
__version__ = '2.5.7'
1616
__email__ = '[email protected]'
1717
__status__ = 'beta'
1818
__url__ = 'https://github.com/INTI-CMNB/KiDiff/'

kicad-diff.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
__copyright__ = 'Copyright 2020-2025, INTI/'+__author__
2929
__credits__ = ['Salvador E. Tropea', 'Jesse Vincent']
3030
__license__ = 'GPL 2.0'
31-
__version__ = '2.5.6'
31+
__version__ = '2.5.7'
3232
__email__ = '[email protected]'
3333
__status__ = 'beta'
3434
__url__ = 'https://github.com/INTI-CMNB/KiDiff/'
@@ -43,7 +43,7 @@
4343
from os.path import isfile, isdir, basename, sep, splitext, abspath, dirname, getmtime
4444
from os import makedirs, rename, remove
4545
from pcbnew import (LoadBoard, PLOT_CONTROLLER, FromMM, PLOT_FORMAT_PDF, PLOT_FORMAT_SVG, Edge_Cuts, GetBuildVersion, ToMM,
46-
ZONE_FILLER)
46+
ZONE_FILLER, IsCopperLayer)
4747
import pcbnew
4848
import re
4949
import shlex
@@ -245,9 +245,7 @@ def GenPCBImages(board, file_hash, hash_dir, file_no_ext, layer_names, wanted_la
245245
pctl.PlotLayer()
246246
# Plot the real layer, disable drill marks in silk screen (8.0.4 added them)
247247
pctl.SetLayer(i)
248-
logging.error(i)
249-
logging.error(i > pcbnew.B_Cu)
250-
popt.SetDrillMarksType(NO_DRILL_SHAPE if i > pcbnew.B_Cu else SMALL_DRILL_SHAPE)
248+
popt.SetDrillMarksType(SMALL_DRILL_SHAPE if IsCopperLayer(i) else NO_DRILL_SHAPE)
251249
pctl.PlotLayer()
252250
pctl.ClosePlot()
253251
if not isfile(name_pdf_kicad):

kicad-git-diff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
__copyright__ = 'Copyright 2020, INTI'
1515
__credits__ = ['Salvador E. Tropea', 'Jesse Vincent']
1616
__license__ = 'GPL 2.0'
17-
__version__ = '2.5.6'
17+
__version__ = '2.5.7'
1818
__email__ = '[email protected]'
1919
__status__ = 'beta'
2020
__url__ = 'https://github.com/INTI-CMNB/KiDiff/'

0 commit comments

Comments
 (0)