Merge tag '17.0.3'

Converting units incoming from the variable server.
This commit is contained in:
Alex Lin 2016-09-06 13:22:09 -05:00
commit eaa6f796d9

View File

@ -6,6 +6,7 @@
#include "trick/message_proto.h"
#include "trick/message_type.h"
#include "trick/memorymanager_c_intf.h"
#include "trick/map_trick_units_to_udunits.hh"
extern Trick::VariableServer * the_vs ;
@ -524,7 +525,8 @@ int var_set_base( const char * var , T value , const char * units ) {
V_DATA v_data ;
v_tree.v_data = &v_data ;
var_set_value( v_data , value) ;
ref->units = (char *)units ;
//ref->units = (char *)units ;
ref->units = (char *)(map_trick_units_to_udunits(units).c_str()) ;
ref_assignment(ref , &v_tree) ;
free(ref) ;
} else {