mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-19 23:15:05 +00:00
Don't add SD card service if no SD card is present in the configuration
This commit is contained in:
parent
20c4e6d3ab
commit
00f2e3b88e
@ -221,7 +221,9 @@ static void registerAndStartSecondaryServices() {
|
|||||||
static void registerAndStartPrimaryServices() {
|
static void registerAndStartPrimaryServices() {
|
||||||
TT_LOG_I(TAG, "Registering and starting system services");
|
TT_LOG_I(TAG, "Registering and starting system services");
|
||||||
addService(service::gps::manifest);
|
addService(service::gps::manifest);
|
||||||
addService(service::sdcard::manifest);
|
if (hal::hasDevice(hal::Device::Type::SdCard)) {
|
||||||
|
addService(service::sdcard::manifest);
|
||||||
|
}
|
||||||
addService(service::wifi::manifest);
|
addService(service::wifi::manifest);
|
||||||
#ifdef ESP_PLATFORM
|
#ifdef ESP_PLATFORM
|
||||||
addService(service::development::manifest);
|
addService(service::development::manifest);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user