Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Leander Schulten
Lichtsteuerung
Commits
e06ffd0e
Commit
e06ffd0e
authored
Mar 07, 2019
by
Leander Schulten
Browse files
Fix crash, only set wait time when driver loading is successful
parent
87aec470
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main.cpp
View file @
e06ffd0e
...
...
@@ -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"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment