Commit e06ffd0e authored by Leander Schulten's avatar Leander Schulten
Browse files

Fix crash, only set wait time when driver loading is successful

parent 87aec470
......@@ -209,11 +209,12 @@ int main(int argc, char *argv[])
// Treiber laden
#define USE_DUMMY_DRIVER
#ifndef USE_DUMMY_DRIVER
/*if(!Driver::loadAndStartDriver(settings.getDriverFilePath())){
if(!Driver::loadAndStartDriver(settings.getDriverFilePath())){
ErrorNotifier::showError("Cant start driver.");
}else {
Driver::getCurrentDriver()->setWaitTime(std::chrono::milliseconds(40));
}
Driver::getCurrentDriver()->setWaitTime(std::chrono::milliseconds(1500000));
*/
#else
#include "test/DriverDummy.h"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment