Add driver source code to project.

This commit is contained in:
2026-01-04 10:33:02 +01:00
parent 4f1af0f4ae
commit 2474d3394c
2 changed files with 2 additions and 0 deletions

View File

@@ -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

View File

@@ -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;