cfdata->poll_interval = battery_config->poll_interval;
cfdata->alert_timeout = battery_config->alert_timeout;
cfdata->force_mode = battery_config->force_mode;
+#ifdef HAVE_EEZE_UDEV
cfdata->fuzzy = battery_config->fuzzy;
-
+#endif
if ((cfdata->alert_time > 0) || (cfdata->alert_percent > 0))
cfdata->show_alert = 1;
else
if (!battery_config) return 0;
battery_config->poll_interval = cfdata->poll_interval;
+#ifdef HAVE_EEZE_UDEV
battery_config->fuzzy = cfdata->fuzzy;
-
+#endif
if (cfdata->show_alert)
{
_ensure_alert_time(cfdata);
(cfdata->alert_percent != battery_config->alert_p) ||
(cfdata->poll_interval != battery_config->poll_interval) ||
(cfdata->alert_timeout != battery_config->alert_timeout) ||
- (cfdata->fuzzy != battery_config->fuzzy) ||
+#ifdef HAVE_EEZE_UDEV
+ (cfdata->fuzzy != battery_config->fuzzy) ||
+#endif
(cfdata->force_mode != battery_config->force_mode) ||
(cfdata->show_alert != old_show_alert) ||
(cfdata->dismiss_alert != old_dismiss_alert));