diff --git a/src/lib.rs b/src/lib.rs index 1d201eb2ace403c4f66e19d61dd1179061370741..5e17207a86855e21acc0c6e81aed668181e4e7bd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -108,7 +108,7 @@ fn open_serial(args: Args<'_>) -> SResult<()> { .map_mexerr(|e| Error::InvalidBaudrate(Box::new(e)))?; // Check for arg2 to resemble a baud rate (this type mismatch should be // fixed later on) - if arg2 != arg2.floor() || !(0.0..=115_200.0).contains(&arg2) { + if arg2 != arg2.floor() || !(0.0..=921_600.0).contains(&arg2) { return Err(Error::InvalidBaudrate(Box::new(Error::InvalidMatlabType( "do not use decimal units, use a number between 0 and 115200".into(), ))));