return -EINVAL;
}
- ses_path_t* child;
- ScfEcomponent* c;
ScfEcomponent* B;
ScfEline* el;
+ ScfEpin* Bp;
ScfEpin* Bn;
ScfEpin* p0;
ScfEpin* p1;
- int i;
+ B = f->components[0];
+ Bp = B->pins[SCF_EDA_Battery_POS];
+ Bn = B->pins[SCF_EDA_Battery_NEG];
p0 = path->pins->data[0];
p1 = path->pins->data[path->pins->size - 1];
+ if (p0->lid == Bp->lid && p1->lid == Bn->lid)
+ return 0;
+
el = f->elines[p0->lid];
p0->v = el->v;
p0->jv = el->jv;
if (!path)
return -EINVAL;
+ int ret = __ses_path_va_bridge(f, path, changed);
+ if (ret < 0)
+ return ret;
+
if (path->bridges) {
for (j = 0; j < path->bridges->size; j++) {
child = path->bridges->data[j];
- int ret = __ses_path_va_bridge(f, child, changed);
- if (ret < 0)
- return ret;
-
ret = ses_path_va_bridge(f, child, changed);
if (ret < 0)
return ret;
return ret;
int j;
- for (j = 0; j < 3; j++) {
+ for (j = 0; j < 1; j++) {
ret = __ses_steps_analyse(f, ns, i, ctx);
if (-EAGAIN == ret)