summaryrefslogtreecommitdiff
path: root/src/definitions.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/definitions.rs')
-rw-r--r--src/definitions.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/definitions.rs b/src/definitions.rs
index 20afe38..f4eb74e 100644
--- a/src/definitions.rs
+++ b/src/definitions.rs
@@ -99,6 +99,7 @@ impl RawECUEntry {
}
pub fn decode(&self, payload: &[u8]) -> Option<Vec<NamedValue>> {
+ trace!("Decoding for {} ({})", self.name(), self.description());
let mut ret = Vec::new();
if payload.len() != self.response.length {
@@ -159,7 +160,7 @@ impl RawECUEntry {
}
};
let name = {
- let mut n = self.name.clone();
+ let mut n = self.name().to_owned();
n.push('.');
n.push_str(&entry.name);
n
@@ -171,7 +172,7 @@ impl RawECUEntry {
for i in 0..payload.len() {
if !used_locations.contains(&i) {
let name = {
- let mut n = self.name.clone();
+ let mut n = self.name().to_owned();
n.push_str(&format!(".unused_{}", i));
n
};