From a4c8d03eb989424b03c3267fc0d070685f119bbc Mon Sep 17 00:00:00 2001 From: Vladan Popovic Date: Sat, 25 Jun 2022 18:33:43 +0200 Subject: [PATCH] rename payload to response in response size parsing --- src/modem.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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")))) }