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