Commit 216d4214 authored by ml's avatar ml

*** empty log message ***

parent d1cb910c
...@@ -620,7 +620,10 @@ static pwr_tBoolean (*encode[pwr_eTix_])() = { ...@@ -620,7 +620,10 @@ static pwr_tBoolean (*encode[pwr_eTix_])() = {
}; };
#endif #endif
/* . */ /**
* @note There is now support for double and it's a little tricky to fix
* if we want backward compatibility..
*/
pwr_tBoolean pwr_tBoolean
ndc_ConvertData ( ndc_ConvertData (
...@@ -639,12 +642,19 @@ ndc_ConvertData ( ...@@ -639,12 +642,19 @@ ndc_ConvertData (
int base; int base;
gdb_sAttribute *ap; gdb_sAttribute *ap;
if (np->fm.m == gdbroot->my_node->fm.m) { /* The new way, convert if different co_mFormat
if (tp != sp) * The old way, always convert if different OS
memcpy(tp, sp, size); */
return TRUE;
if ((np->netver >= net_cFirstCclassVersion && np->fm.m == gdbroot->my_node->fm.m)
|| (np->netver < net_cFirstCclassVersion &&
np->os == gdbroot->my_node->os && np->fm.b.bo == gdbroot->my_node->fm.b.bo)) {
if (tp != sp)
memcpy(tp, sp, size);
return TRUE;
} }
cid.pwr = arp->Body; cid.pwr = arp->Body;
cid.c.bix = 0; /* To get the class id. */ cid.c.bix = 0; /* To get the class id. */
......
...@@ -32,6 +32,9 @@ ...@@ -32,6 +32,9 @@
% %
%#define net_cVersion 8 %#define net_cVersion 8
% %
% /** @note DO NOT change this number */
%#define net_cFirstCclassVersion 8
%
%#define net_cSendRcvTmo 20000 /* Timeout (ms) used in pams_rcv_msgw calls */ %#define net_cSendRcvTmo 20000 /* Timeout (ms) used in pams_rcv_msgw calls */
%#define net_cProcHandler 110 %#define net_cProcHandler 110
%#define net_cMsgClass 200 %#define net_cMsgClass 200
......
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