#include #ifdef ESP_PLATFORM #include #include #include #endif namespace tt::service::rtctime { #ifdef ESP_PLATFORM extern const ServiceManifest manifest; #endif bool isAvailable() { #ifdef ESP_PLATFORM // The service is only registered when an RTC device is present (see Tactility.cpp); // treat "not registered" the same as "no device bound" rather than asserting. auto service = findServiceById(manifest.id); return service != nullptr && service->isAvailable(); #else return false; #endif } } // namespace tt::service::rtctime