Commit 7b52584b authored by Claes Sjofors's avatar Claes Sjofors

Wb dataarithm fix for DataRef

parent 0940f4bd
...@@ -228,7 +228,7 @@ static pwr_tStatus dataa_Da1 ( ...@@ -228,7 +228,7 @@ static pwr_tStatus dataa_Da1 (
if ( dataactx->outdata1_eq_indata ) if ( dataactx->outdata1_eq_indata )
{ {
sprintf( out, sprintf( out,
"Da1 */ memcpy( &%s->OutData1, %s->DataIn1P, 32)", var, var); "Da1 */ memcpy( &%s->OutData1, %s->DataIn1P, sizeof(pwr_tDataRef))", var, var);
dataactx->outdata1_eq_indata = 0; dataactx->outdata1_eq_indata = 0;
*incr = strlen(out); *incr = strlen(out);
return GSX__SUCCESS; return GSX__SUCCESS;
...@@ -236,7 +236,7 @@ static pwr_tStatus dataa_Da1 ( ...@@ -236,7 +236,7 @@ static pwr_tStatus dataa_Da1 (
if ( dataactx->outdata2_eq_indata ) if ( dataactx->outdata2_eq_indata )
{ {
sprintf( out, sprintf( out,
"Da1 */ memcpy( &%s->OutData2, %s->DataIn1P, 32)", var, var); "Da1 */ memcpy( &%s->OutData2, %s->DataIn1P, sizeof(pwr_tDataRef))", var, var);
dataactx->outdata2_eq_indata = 0; dataactx->outdata2_eq_indata = 0;
*incr = strlen(out); *incr = strlen(out);
return GSX__SUCCESS; return GSX__SUCCESS;
...@@ -244,7 +244,7 @@ static pwr_tStatus dataa_Da1 ( ...@@ -244,7 +244,7 @@ static pwr_tStatus dataa_Da1 (
if ( dataactx->outdata3_eq_indata ) if ( dataactx->outdata3_eq_indata )
{ {
sprintf( out, sprintf( out,
"Da1 */ memcpy( &%s->OutData3, %s->DataIn1P, 32)", var, var); "Da1 */ memcpy( &%s->OutData3, %s->DataIn1P, sizeof(pwr_tDataRef))", var, var);
dataactx->outdata3_eq_indata = 0; dataactx->outdata3_eq_indata = 0;
*incr = strlen(out); *incr = strlen(out);
return GSX__SUCCESS; return GSX__SUCCESS;
...@@ -252,7 +252,7 @@ static pwr_tStatus dataa_Da1 ( ...@@ -252,7 +252,7 @@ static pwr_tStatus dataa_Da1 (
if ( dataactx->outdata4_eq_indata ) if ( dataactx->outdata4_eq_indata )
{ {
sprintf( out, sprintf( out,
"Da1 */ memcpy( &%s->OutData4, %s->DataIn1P, 32)", var, var); "Da1 */ memcpy( &%s->OutData4, %s->DataIn1P, sizeof(pwr_tDataRef))", var, var);
dataactx->outdata4_eq_indata = 0; dataactx->outdata4_eq_indata = 0;
*incr = strlen(out); *incr = strlen(out);
return GSX__SUCCESS; return GSX__SUCCESS;
...@@ -286,7 +286,7 @@ static pwr_tStatus dataa_Da2 ( ...@@ -286,7 +286,7 @@ static pwr_tStatus dataa_Da2 (
if ( dataactx->outdata1_eq_indata ) if ( dataactx->outdata1_eq_indata )
{ {
sprintf( out, sprintf( out,
"Da2 */ memcpy( &%s->OutData1, %s->DataIn2P, 32)", var, var); "Da2 */ memcpy( &%s->OutData1, %s->DataIn2P, sizeof(pwr_tDataRef))", var, var);
dataactx->outdata1_eq_indata = 0; dataactx->outdata1_eq_indata = 0;
*incr = strlen(out); *incr = strlen(out);
return GSX__SUCCESS; return GSX__SUCCESS;
...@@ -294,7 +294,7 @@ static pwr_tStatus dataa_Da2 ( ...@@ -294,7 +294,7 @@ static pwr_tStatus dataa_Da2 (
if ( dataactx->outdata2_eq_indata ) if ( dataactx->outdata2_eq_indata )
{ {
sprintf( out, sprintf( out,
"Da2 */ memcpy( &%s->OutData2, %s->DataIn2P, 32)", var, var); "Da2 */ memcpy( &%s->OutData2, %s->DataIn2P, sizeof(pwr_tDataRef))", var, var);
dataactx->outdata2_eq_indata = 0; dataactx->outdata2_eq_indata = 0;
*incr = strlen(out); *incr = strlen(out);
return GSX__SUCCESS; return GSX__SUCCESS;
...@@ -302,7 +302,7 @@ static pwr_tStatus dataa_Da2 ( ...@@ -302,7 +302,7 @@ static pwr_tStatus dataa_Da2 (
if ( dataactx->outdata3_eq_indata ) if ( dataactx->outdata3_eq_indata )
{ {
sprintf( out, sprintf( out,
"Da2 */ memcpy( &%s->OutData3, %s->DataIn2P, 32)", var, var); "Da2 */ memcpy( &%s->OutData3, %s->DataIn2P, sizeof(pwr_tDataRef))", var, var);
dataactx->outdata3_eq_indata = 0; dataactx->outdata3_eq_indata = 0;
*incr = strlen(out); *incr = strlen(out);
return GSX__SUCCESS; return GSX__SUCCESS;
...@@ -310,7 +310,7 @@ static pwr_tStatus dataa_Da2 ( ...@@ -310,7 +310,7 @@ static pwr_tStatus dataa_Da2 (
if ( dataactx->outdata4_eq_indata ) if ( dataactx->outdata4_eq_indata )
{ {
sprintf( out, sprintf( out,
"Da2 */ memcpy( &%s->OutData4, %s->DataIn2P, 32)", var, var); "Da2 */ memcpy( &%s->OutData4, %s->DataIn2P, sizeof(pwr_tDataRef))", var, var);
dataactx->outdata4_eq_indata = 0; dataactx->outdata4_eq_indata = 0;
*incr = strlen(out); *incr = strlen(out);
return GSX__SUCCESS; return GSX__SUCCESS;
...@@ -344,7 +344,7 @@ static pwr_tStatus dataa_Da3 ( ...@@ -344,7 +344,7 @@ static pwr_tStatus dataa_Da3 (
if ( dataactx->outdata1_eq_indata ) if ( dataactx->outdata1_eq_indata )
{ {
sprintf( out, sprintf( out,
"Da3 */ memcpy( &%s->OutData1, %s->DataIn3P, 32)", var, var); "Da3 */ memcpy( &%s->OutData1, %s->DataIn3P, sizeof(pwr_tDataRef))", var, var);
dataactx->outdata1_eq_indata = 0; dataactx->outdata1_eq_indata = 0;
*incr = strlen(out); *incr = strlen(out);
return GSX__SUCCESS; return GSX__SUCCESS;
...@@ -352,7 +352,7 @@ static pwr_tStatus dataa_Da3 ( ...@@ -352,7 +352,7 @@ static pwr_tStatus dataa_Da3 (
if ( dataactx->outdata2_eq_indata ) if ( dataactx->outdata2_eq_indata )
{ {
sprintf( out, sprintf( out,
"Da3 */ memcpy( &%s->OutData2, %s->DataIn3P, 32)", var, var); "Da3 */ memcpy( &%s->OutData2, %s->DataIn3P, sizeof(pwr_tDataRef))", var, var);
dataactx->outdata2_eq_indata = 0; dataactx->outdata2_eq_indata = 0;
*incr = strlen(out); *incr = strlen(out);
return GSX__SUCCESS; return GSX__SUCCESS;
...@@ -360,7 +360,7 @@ static pwr_tStatus dataa_Da3 ( ...@@ -360,7 +360,7 @@ static pwr_tStatus dataa_Da3 (
if ( dataactx->outdata3_eq_indata ) if ( dataactx->outdata3_eq_indata )
{ {
sprintf( out, sprintf( out,
"Da3 */ memcpy( &%s->OutData3, %s->DataIn3P, 32)", var, var); "Da3 */ memcpy( &%s->OutData3, %s->DataIn3P, sizeof(pwr_tDataRef))", var, var);
dataactx->outdata3_eq_indata = 0; dataactx->outdata3_eq_indata = 0;
*incr = strlen(out); *incr = strlen(out);
return GSX__SUCCESS; return GSX__SUCCESS;
...@@ -368,7 +368,7 @@ static pwr_tStatus dataa_Da3 ( ...@@ -368,7 +368,7 @@ static pwr_tStatus dataa_Da3 (
if ( dataactx->outdata4_eq_indata ) if ( dataactx->outdata4_eq_indata )
{ {
sprintf( out, sprintf( out,
"Da3 */ memcpy( &%s->OutData4, %s->DataIn3P, 32)", var, var); "Da3 */ memcpy( &%s->OutData4, %s->DataIn3P, sizeof(pwr_tDataRef))", var, var);
dataactx->outdata4_eq_indata = 0; dataactx->outdata4_eq_indata = 0;
*incr = strlen(out); *incr = strlen(out);
return GSX__SUCCESS; return GSX__SUCCESS;
...@@ -402,7 +402,7 @@ static pwr_tStatus dataa_Da4 ( ...@@ -402,7 +402,7 @@ static pwr_tStatus dataa_Da4 (
if ( dataactx->outdata1_eq_indata ) if ( dataactx->outdata1_eq_indata )
{ {
sprintf( out, sprintf( out,
"Da4 */ memcpy( &%s->OutData1, %s->DataIn4P, 32)", var, var); "Da4 */ memcpy( &%s->OutData1, %s->DataIn4P, sizeof(pwr_tDataRef))", var, var);
dataactx->outdata1_eq_indata = 0; dataactx->outdata1_eq_indata = 0;
*incr = strlen(out); *incr = strlen(out);
return GSX__SUCCESS; return GSX__SUCCESS;
...@@ -410,7 +410,7 @@ static pwr_tStatus dataa_Da4 ( ...@@ -410,7 +410,7 @@ static pwr_tStatus dataa_Da4 (
if ( dataactx->outdata2_eq_indata ) if ( dataactx->outdata2_eq_indata )
{ {
sprintf( out, sprintf( out,
"Da4 */ memcpy( &%s->OutData2, %s->DataIn4P, 32)", var, var); "Da4 */ memcpy( &%s->OutData2, %s->DataIn4P, sizeof(pwr_tDataRef))", var, var);
dataactx->outdata2_eq_indata = 0; dataactx->outdata2_eq_indata = 0;
*incr = strlen(out); *incr = strlen(out);
return GSX__SUCCESS; return GSX__SUCCESS;
...@@ -418,7 +418,7 @@ static pwr_tStatus dataa_Da4 ( ...@@ -418,7 +418,7 @@ static pwr_tStatus dataa_Da4 (
if ( dataactx->outdata3_eq_indata ) if ( dataactx->outdata3_eq_indata )
{ {
sprintf( out, sprintf( out,
"Da4 */ memcpy( &%s->OutData3, %s->DataIn4P, 32)", var, var); "Da4 */ memcpy( &%s->OutData3, %s->DataIn4P, sizeof(pwr_tDataRef))", var, var);
dataactx->outdata3_eq_indata = 0; dataactx->outdata3_eq_indata = 0;
*incr = strlen(out); *incr = strlen(out);
return GSX__SUCCESS; return GSX__SUCCESS;
...@@ -426,7 +426,7 @@ static pwr_tStatus dataa_Da4 ( ...@@ -426,7 +426,7 @@ static pwr_tStatus dataa_Da4 (
if ( dataactx->outdata4_eq_indata ) if ( dataactx->outdata4_eq_indata )
{ {
sprintf( out, sprintf( out,
"Da4 */ memcpy( &%s->OutData4, %s->DataIn4P, 32)", var, var); "Da4 */ memcpy( &%s->OutData4, %s->DataIn4P, sizeof(pwr_tDataRef))", var, var);
dataactx->outdata4_eq_indata = 0; dataactx->outdata4_eq_indata = 0;
*incr = strlen(out); *incr = strlen(out);
return GSX__SUCCESS; return GSX__SUCCESS;
...@@ -478,7 +478,7 @@ static pwr_tStatus dataa_ODa1 ( ...@@ -478,7 +478,7 @@ static pwr_tStatus dataa_ODa1 (
} }
} }
if ( !dataactx->outdata1_eq_indata ) if ( !dataactx->outdata1_eq_indata )
sprintf( out, "(%s->OutData1)", var); sprintf( out, "(%s->OutData1.Ptr)", var);
*incr = strlen(out); *incr = strlen(out);
return GSX__SUCCESS; return GSX__SUCCESS;
} }
...@@ -513,7 +513,7 @@ static pwr_tStatus dataa_ODa2 ( ...@@ -513,7 +513,7 @@ static pwr_tStatus dataa_ODa2 (
} }
} }
if ( !dataactx->outdata2_eq_indata ) if ( !dataactx->outdata2_eq_indata )
sprintf( out, "(%s->OutData2)", var); sprintf( out, "(%s->OutData2.Ptr)", var);
*incr = strlen(out); *incr = strlen(out);
return GSX__SUCCESS; return GSX__SUCCESS;
} }
...@@ -548,7 +548,7 @@ static pwr_tStatus dataa_ODa3 ( ...@@ -548,7 +548,7 @@ static pwr_tStatus dataa_ODa3 (
} }
} }
if ( !dataactx->outdata3_eq_indata ) if ( !dataactx->outdata3_eq_indata )
sprintf( out, "(%s->OutData3)", var); sprintf( out, "(%s->OutData3.Ptr)", var);
*incr = strlen(out); *incr = strlen(out);
return GSX__SUCCESS; return GSX__SUCCESS;
} }
...@@ -583,7 +583,7 @@ static pwr_tStatus dataa_ODa4 ( ...@@ -583,7 +583,7 @@ static pwr_tStatus dataa_ODa4 (
} }
} }
if ( !dataactx->outdata4_eq_indata ) if ( !dataactx->outdata4_eq_indata )
sprintf( out, "(%s->OutData4)", var); sprintf( out, "(%s->OutData4.Ptr)", var);
*incr = strlen(out); *incr = strlen(out);
return GSX__SUCCESS; return GSX__SUCCESS;
} }
......
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