add RN2483 chip support

This commit is contained in:
Quentin ADAM 2020-05-19 01:29:32 +02:00
parent 1a7f8c4ab1
commit 1b380935a3
1 changed files with 2 additions and 1 deletions

View File

@ -203,7 +203,8 @@ impl Rn2903 {
pub fn new(port: Box<dyn SerialPort>) -> Result<Self> {
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)