Commit 042a862c authored by Claes's avatar Claes Committed by Esteban Blanc

Redu, default value of segment size added and fix for plcthread statistics update

parent dcb03496
...@@ -524,6 +524,8 @@ static pwr_tStatus redu_node_init() ...@@ -524,6 +524,8 @@ static pwr_tStatus redu_node_init()
if (l.port == 0) if (l.port == 0)
l.port = redu_cPort; l.port = redu_cPort;
redu_segment_size = atoi(s_seg_size); redu_segment_size = atoi(s_seg_size);
if (redu_segment_size == 0)
redu_segment_size = 8192;
// l.nodep->RedundancyState = atoi(s_state); // l.nodep->RedundancyState = atoi(s_state);
l.default_redundancy_state = atoi(s_state); l.default_redundancy_state = atoi(s_state);
l.min_resend_time = atoi(s_min_resend_time); l.min_resend_time = atoi(s_min_resend_time);
......
...@@ -625,6 +625,13 @@ static void scan(plc_sThread* tp) ...@@ -625,6 +625,13 @@ static void scan(plc_sThread* tp)
tp->ActualScanTime = tp->f_scan_time; tp->ActualScanTime = tp->f_scan_time;
tp->redu_state_old = tp->pp->Node->RedundancyState; tp->redu_state_old = tp->pp->Node->RedundancyState;
tp->one_before_scan = tp->before_scan;
tp->one_before_scan_abs = tp->before_scan_abs;
if (++tp->loops == 2)
tp->log = TRUE;
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment