예제 #1
0
파일: gtests.cpp 프로젝트: BenZoFly/opentx
int main(int argc, char **argv)
{
  QCoreApplication app(argc, argv);
  simuInit();
  StartEepromThread(NULL);
  menuLevel = 0;
  menuHandlers[0] = menuMainView;
  ::testing::InitGoogleTest(&argc, argv);
  return RUN_ALL_TESTS();
}
예제 #2
0
void OpenTxSimulator::start(const char * filename, bool tests)
{
#if defined(PCBSKY9X) && !defined(REVX)
  g_rotenc[0] = 0;
#elif defined(PCBGRUVIN9X)
  g_rotenc[0] = 0;
  g_rotenc[1] = 0;
#endif

  StartEepromThread(filename);
  StartAudioThread(volumeGain);
  StartMainThread(tests);
}