- Fixed a sign problem in amorset.c regarding aom and cox

- Fixed a bad encoding of float values when writing to the SPS
This commit is contained in:
2014-12-04 11:35:26 +01:00
parent ac5aee6062
commit 1cf0e3351a
2 changed files with 3 additions and 2 deletions

View File

@ -290,7 +290,8 @@ static hdbCallbackReturn S7WriteCallback(pHdb currentNode,
break;
case 3:
fval = (float)mm->v->v.doubleValue;
idata = htonl((int)fval);
memcpy(&idata,&fval,4);
idata = htonl(idata);
MakeWriteMessage(writeAction,offset,4,&idata);
break;
default: