X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fonewire.c;h=cae0d63d4c22f529aab642a3e3f6dd37e8195fb4;hp=261457a1bb90cad631a236c8fc7014818b4f9c01;hb=0d5c879672770e3b8a740727fb223a6febdeaa27;hpb=53f791cb6b55512101a0a0f42f9d91c356fa9591 diff --git a/src/onewire.c b/src/onewire.c index 261457a1..cae0d63d 100644 --- a/src/onewire.c +++ b/src/onewire.c @@ -89,9 +89,7 @@ static int cow_load_config (const char *key, const char *value) 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)