From 1b380935a3dbe2794ef1c7606efd6d33ff9d691d Mon Sep 17 00:00:00 2001 From: Quentin ADAM Date: Tue, 19 May 2020 01:29:32 +0200 Subject: [PATCH] add RN2483 chip support --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 3c9c2ad..96f88c4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -203,7 +203,8 @@ impl Rn2903 { pub fn new(port: Box) -> Result { let mut new = Self::new_unchecked(port); let version = new.system_version()?; - if &version[0..6] != "RN2903" { + // RN2483 and RN2903 are the same, just EU and US chip, but talk the same + if &version[0..6] != "RN2903" && &version[0..6] != "RN2483" { Err(Error::WrongDevice(version)) } else { Ok(new)