* if value_count is over 16(max value count), it makes a problem when
values is copied in loop.
Change-Id: I8f07fe76909fe995027a604ac18bb9cdb6fbf827
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
return false;
}
- sensor_data_t *base_data;
- base_data = &cmd_get_data_done->base_data;
-
- sensor_data->timestamp = base_data->timestamp;
- sensor_data->accuracy = base_data->accuracy;
- sensor_data->value_count = base_data->value_count;
-
- memcpy(sensor_data->values, base_data->values,
- sizeof(sensor_data->values[0]) * base_data->value_count);
+ memcpy(sensor_data, &cmd_get_data_done->base_data, sizeof(sensor_data_t));
delete[] (char *)cmd_get_data_done;
delete packet;