Set default preiod (100) if sampling option is not set
Change-Id: I3cbd486f5ce190222df42982bc127e94e20e6596
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
config = {
'features': self.__fd.features_to_bits(self._config['features']),
'system_trace_period': 100, # System info period
- 'data_message_period': self._config['sampling']['period'],
+ 'data_message_period': 100, # Set default sampling period
}
+
+ if self._config['sampling'] is not None:
+ config['data_message_period'] = self._config['sampling']['period']
+
self._request('MSG_CONFIG', config)
def binary_info(self):