message: check exit code for unicorn get data method
diff: @@ -166,7 +166,10 @@ void UnicornBoard::read_thread ()
  {
  // unicorn uses similar idea as in brainflow - return single array with different kinds of
  // data and provide API(defines in this case) to mark this data
  - func_get_data (device_handle, 1, temp_buffer, UnicornBoard::package_size * sizeof (float));
  + int res = func_get_data (
  + device_handle, 1, temp_buffer, UnicornBoard::package_size * sizeof (float));
  + if (res == UNICORN_ERROR_SUCCESS)
  + {
  package[board_descr["timestamp_channel"].get<int> ()] = get_timestamp ();
  // eeg data
  package[eeg_channels[0]] = (double)temp_buffer[UNICORN_EEG_CONFIG_INDEX];
  @@ -202,6 +205,17 @@ void UnicornBoard::read_thread ()
  (double)temp_buffer[UNICORN_VALIDATION_CONFIG_INDEX];
  push_package (package);
  }
  + else
  + {
  +#ifdef _WIN32
  + Sleep (10);
  +#else
  + usleep (10000);
  +#endif
  + safe_logger (spdlog::level::trace, "UNICORN_GetData error: {}", res);
  + continue;
  + }
  + }
  delete[] package;
  }
  