1 --- domoticz-2022.1/hardware/1Wire/1WireByOWFS.cpp.bak Tue Jun 14 13:18:03 2022
2 +++ domoticz-2022.1/hardware/1Wire/1WireByOWFS.cpp Tue Jun 14 13:21:58 2022
4 bool C1WireByOWFS::IsValidDir(const struct dirent*const de)
7 - if (de->d_type!=DT_DIR)
9 + stat(de->d_name, &s);
10 + if (!(s.st_mode & S_IFDIR))
13 // Filter system dirs "." and ".."
15 while ((de = readdir(d)))
18 - if (de->d_type == DT_DIR)
20 + stat(de->d_name, &s);
21 + if (s.st_mode & S_IFDIR)
23 if ( ((family == Environmental_Monitors) && (name.compare(0, 3, "EDS") == 0))
24 || ((family == smart_battery_monitor) && (name.compare(0, 7, "B1-R1-A") == 0)) ) {