W1TemperatureSensor::W1TemperatureSensor(int family_code_param,
string device_id_param,
dirent *direntry_param): W1Device(family_code_param, device_id_param, direntry_param) {
- log_debug("trying to open file: %s\n", slave_file.c_str());
-
ifstream ifs(slave_file.c_str());
if (ifs.is_open() == false) {
log_error("%s: %s failed to read data from file: %s\n", id.c_str(), get_device_type().c_str(), slave_file.c_str());