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();