Add driver source code to project.
This commit is contained in:
@@ -39,6 +39,7 @@ SOURCES += \
|
||||
bcvaluemodel.cpp \
|
||||
bcxmlloader.cpp \
|
||||
lib/can_drv_win.c \
|
||||
lib/mhs_can_drv.c \
|
||||
main.cpp \
|
||||
bcmainwindow.cpp
|
||||
|
||||
|
||||
@@ -70,6 +70,7 @@ BCDriver::DriverStateResult BCDriverTinyCan::loadDriver()
|
||||
{
|
||||
auto callLoadDriver = [&]() -> DriverStateResult
|
||||
{
|
||||
qDebug() << " -- Hier!";
|
||||
if( ::LoadDriver( NULL ) < 0 )
|
||||
return std::unexpected(QString("Driver Error: 'LoadDriver'"));
|
||||
_driverState = DriverState::Loaded;
|
||||
|
||||
Reference in New Issue
Block a user