]> pilppa.org Git - lib1wire.git/blobdiff - src/W1Device.cc
Initial support for reading log-data.
[lib1wire.git] / src / W1Device.cc
index bc86d830fc6580c786d142f173f423a06151f138..843910ac9764bca9a59257ce25eebbd0411399c7 100644 (file)
@@ -66,20 +66,20 @@ string W1Device::get_time() {
 void W1Device::printout() {
        string text;
 
-       text    = get_formatted_data();
+       text    = get_formatted_value();
        cout << text << endl;
 }
 
-string W1Device::get_formatted_data() {
+string W1Device::get_formatted_value() {
        string ret_val;
        string val;
 
-       val     = get_value();
-       ret_val = get_formatted_data(val);
+       val     = get_raw_value();
+       ret_val = get_formatted_value(val);
        return ret_val;
 }
 
-string W1Device::get_formatted_data(string value) {
+string W1Device::get_formatted_value(string value) {
        string ret_val;
 
        ret_val = get_time() + "|" + get_devicetype_name() + "|" + id + "|" + value + " " + get_unit();