diff --git a/src/modem.rs b/src/modem.rs index 9bda57a..44644b0 100644 --- a/src/modem.rs +++ b/src/modem.rs @@ -268,7 +268,7 @@ impl Modem { Ok(()) } - fn tcp_parse_payload_size(&mut self, reply_line: &str) -> Result { + fn tcp_parse_response_size(&mut self, reply_line: &str) -> Result { reply_line.split(',') .into_iter() .last() @@ -283,7 +283,7 @@ impl Modem { .filter(|line| line.contains("+CIPRXGET: 4")) .next() .ok_or(ModemError::CommandError("reply not found :/".to_string())) - .map(|line| self.tcp_parse_payload_size(line)) + .map(|line| self.tcp_parse_response_size(line)) .unwrap_or(Err(ModemError::CommandError(format!("received 0 elements from parsing")))) }