MCPcopy Create free account
hub / github.com/FedeDP/Clight / evaluate

Function evaluate

src/modules/location.c:53–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53static bool evaluate(void) {
54 /*
55 * Only start when neither a location nor fixed times
56 * for both events are specified in conf
57 */
58 return !conf.wizard &&
59 ((conf.day_conf.loc.lat == LAT_UNDEFINED || conf.day_conf.loc.lon == LON_UNDEFINED) &&
60 (is_string_empty(conf.day_conf.day_events[SUNRISE]) || is_string_empty(conf.day_conf.day_events[SUNSET])));
61}
62
63/*
64 * Stop geoclue2 client and store latest location to cache.

Callers

nothing calls this directly

Calls 1

is_string_emptyFunction · 0.85

Tested by

no test coverage detected