From 7373921a597b5451cde8f062173dae64184663ac Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Mon, 16 Dec 2024 10:12:16 -0300 Subject: [PATCH] [Added] Check for PCB to W_MISSFPINFO See #741 --- kibot/bom/bom.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kibot/bom/bom.py b/kibot/bom/bom.py index 81fd80b9..2f41818f 100644 --- a/kibot/bom/bom.py +++ b/kibot/bom/bom.py @@ -334,6 +334,8 @@ def update_fields(self, conv, bottom_negative_x, x_origin, y_origin, angle_posit self.fields[ColumnList.COL_FP_L] = comp.footprint if uses_fp_info and not comp.has_pcb_info: logger.warning(W_MISSFPINFO+'Missing footprint information for {}'.format(comp.ref)) + if not GS.pcb_file: + logger.warning(W_MISSFPINFO+'Please provide a PCB file') pos_x = (comp.footprint_x - x_origin) * conv if bottom_negative_x and comp.bottom: pos_x = -pos_x