X-Git-Url: http://pilppa.org/gitweb/?p=lib1wire.git;a=blobdiff_plain;f=src%2FW1CounterDevice.cc;fp=src%2FW1CounterDevice.cc;h=c77b872db77786d3da509746e232645f9ad7cbaa;hp=37a0821903d893074f90f4a0911d48d9d5910d40;hb=a7002b0a87c5f17b542dfbd44f482014a191df97;hpb=da203ad44792ca37320768f4cbe68587c4806910 diff --git a/src/W1CounterDevice.cc b/src/W1CounterDevice.cc index 37a0821..c77b872 100644 --- a/src/W1CounterDevice.cc +++ b/src/W1CounterDevice.cc @@ -28,14 +28,14 @@ bool string_to_number(NumberDataType& result, return !(iss >> format >> result).fail(); } -W1CounterDevice::W1CounterDevice(string device_type_param, - string device_id_param, - dirent *direntry_param): W1Device(device_type_param, device_id_param, direntry_param) { +W1CounterDevice::W1CounterDevice(string device_id_param, + string device_type_param, + dirent *direntry_param): W1Device(device_id_param, device_type_param, direntry_param) { string text; 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()); + log_error("%s: %s failed to read data from file: %s\n", id.c_str(), get_type().c_str(), slave_file.c_str()); log_error("Verify that you have w1_ds2423 kernel module loaded.\n"); ifs.close(); }