# HG changeset patch # User laurent # Date 1330008499 -3600 # Node ID 1d113faf44335578c80d31e2828c5adda49e70f8 # Parent ae8fecf082a163b36731b430a210bef2f3e6ac9f Fix bug with PowerFeedback value diff -r ae8fecf082a1 -r 1d113faf4433 etherlab/plc_ds402node.c --- a/etherlab/plc_ds402node.c Wed Feb 22 01:39:22 2012 +0100 +++ b/etherlab/plc_ds402node.c Thu Feb 23 15:48:19 2012 +0100 @@ -96,7 +96,7 @@ return; } - __DS402Node_%(location)s.axis->PowerFeedback = __DS402Node_%(location)s.state != __OperationEnabled; + __DS402Node_%(location)s.axis->PowerFeedback = __DS402Node_%(location)s.state == __OperationEnabled; __DS402Node_%(location)s.axis->ActualPosition = (IEC_REAL)(*(__DS402Node_%(location)s.ActualPosition)) * __DS402Node_%(location)s.axis->RatioDenominator / __DS402Node_%(location)s.axis->RatioNumerator; __MK_UpdateAxis(*__IW%(location)s_0);