diff --git a/src/onewire.c b/src/onewire.c
index 261457a1bb90cad631a236c8fc7014818b4f9c01..cae0d63d4c22f529aab642a3e3f6dd37e8195fb4 100644 (file)
--- a/src/onewire.c
+++ b/src/onewire.c
else if (strcasecmp (key, "IgnoreSelected") == 0)
{
ignorelist_set_invert (sensor_list, 1);
- if ((strcasecmp (value, "True") == 0)
- || (strcasecmp (value, "Yes") == 0)
- || (strcasecmp (value, "On") == 0))
+ if (IS_TRUE (value))
ignorelist_set_invert (sensor_list, 0);
}
else if (strcasecmp (key, "Device") == 0)