From 18974db2b41fba8d6c5d2772d60c16be8c9cd3ab Mon Sep 17 00:00:00 2001
From: "yu.dongliang" <18588496441@163.com>
Date: Tue, 14 Nov 2023 14:39:39 +0800
Subject: [PATCH] SCF_EDA_Capacitor

---
 ses_step_simplify.c | 2 +-
 ses_step_topo.c     | 2 +-
 ses_steps.c         | 2 +-
 test/main.c         | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/ses_step_simplify.c b/ses_step_simplify.c
index 534c3fd..eef9d82 100644
--- a/ses_step_simplify.c
+++ b/ses_step_simplify.c
@@ -91,7 +91,7 @@ void __ses_function_draw(ScfEfunction* f, cairo_t* cr)
 				cairo_stroke(cr);
 				break;
 
-			case SCF_EDA_Inductor:
+			case SCF_EDA_Capacitor:
 				p = c->pins[SCF_EDA_Battery_POS];
 				cairo_move_to(cr, c->x - 8, c->y - 5);
 				cairo_line_to(cr, c->x + 8, c->y - 5);
diff --git a/ses_step_topo.c b/ses_step_topo.c
index 87b42ef..b13e7df 100644
--- a/ses_step_topo.c
+++ b/ses_step_topo.c
@@ -896,7 +896,7 @@ static int _topo_handler(ScfEfunction* f, int64_t ns, int64_t count, ses_ctx_t*
 	int ret = _topo_paths(f, el, ctx->paths);
 	if (ret < 0)
 		return ret;
-#if 1
+#if 0
 	ret = _topo_path_completes(f, ctx->paths);
 	if (ret < 0)
 		return ret;
diff --git a/ses_steps.c b/ses_steps.c
index 044cbc9..204bbab 100644
--- a/ses_steps.c
+++ b/ses_steps.c
@@ -144,7 +144,7 @@ int ses_steps_analyse(ScfEfunction* f, int64_t ns, int64_t count)
 			return ret;
 
 		int j;
-		for (j = 0; j < 3; j++) {
+		for (j = 0; j < 1; j++) {
 			printf("\n\033[33m%s(), %d(), j: %d\033[0m\n", __func__, __LINE__, j);
 
 			ret = __ses_steps_analyse(f, ns, i, ctx);
diff --git a/test/main.c b/test/main.c
index c38a20b..e395d3e 100644
--- a/test/main.c
+++ b/test/main.c
@@ -28,7 +28,7 @@ int main(int argc, char* argv[])
 	EDA_INST_ADD_COMPONENT(f, R1, SCF_EDA_Resistor);
 	EDA_INST_ADD_COMPONENT(f, R2, SCF_EDA_Resistor);
 	EDA_INST_ADD_COMPONENT(f, R3, SCF_EDA_Resistor);
-	EDA_INST_ADD_COMPONENT(f, C0, SCF_EDA_Inductor);
+	EDA_INST_ADD_COMPONENT(f, C0, SCF_EDA_Capacitor);
 
 	EDA_PIN_ADD_PIN(B,  SCF_EDA_Battery_POS,  R0, 1);
 	EDA_PIN_ADD_PIN(R0, 0,                    R1, 1);
-- 
2.25.1