PR feedback

This commit is contained in:
Ken Van Hoeylandt 2026-01-31 00:07:21 +01:00
parent 37b6fe7e98
commit a62164acb9
3 changed files with 5 additions and 12 deletions

View File

@ -1,10 +0,0 @@
#include <tactility/driver.h>
extern "C" {
extern void register_device_drivers() {
extern Driver tlora_pager_driver;
driver_construct(&tlora_pager_driver);
}
}

View File

@ -6,6 +6,8 @@
extern "C" {
extern struct Module device_module;
static int start(Device* device) {
return 0;
}
@ -21,7 +23,8 @@ Driver tlora_pager_driver = {
.stopDevice = stop,
.api = nullptr,
.deviceType = nullptr,
.internal = { 0 }
.owner = &device_module,
.driver_private = nullptr
};
}

View File

@ -19,7 +19,7 @@ TEST_CASE("driver_construct and driver_destruct should set and unset the correct
CHECK_EQ(driver.driver_private, nullptr);
}
TEST_CASE("a driver without a module should not be destrucable") {
TEST_CASE("a driver without a module should not be destructible") {
Driver driver = { 0 };
CHECK_EQ(driver_construct(&driver), ERROR_NONE);