mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-04-21 19:05:06 +00:00
Cleanup
This commit is contained in:
parent
14a8ac20c8
commit
51f920c6e8
@ -39,12 +39,12 @@ void init(const Configuration& configuration) {
|
|||||||
if (!configuration.sdcard->mount(TT_SDCARD_MOUNT_POINT)) {
|
if (!configuration.sdcard->mount(TT_SDCARD_MOUNT_POINT)) {
|
||||||
TT_LOG_W(TAG, "SD card mount failed (init can continue)");
|
TT_LOG_W(TAG, "SD card mount failed (init can continue)");
|
||||||
}
|
}
|
||||||
hal::registerDevice(configuration.sdcard);
|
registerDevice(configuration.sdcard);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (configuration.power != nullptr) {
|
if (configuration.power != nullptr) {
|
||||||
std::shared_ptr<tt::hal::power::PowerDevice> power = configuration.power();
|
std::shared_ptr<power::PowerDevice> power = configuration.power();
|
||||||
hal::registerDevice(power);
|
registerDevice(power);
|
||||||
}
|
}
|
||||||
|
|
||||||
kernel::publishSystemEvent(kernel::SystemEvent::BootInitHalEnd);
|
kernel::publishSystemEvent(kernel::SystemEvent::BootInitHalEnd);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user