Apparently NLINV doesn't need a static prefix and can be 0x00. Add BK3 selector

This commit is contained in:
Corey Vixie 2020-04-04 01:34:19 -07:00
parent 1dfd82157b
commit f3eaf0bc91

View File

@ -262,6 +262,7 @@ pub enum Command2Selection {
Disabled = 0x00, Disabled = 0x00,
BK0 = 0x10, BK0 = 0x10,
BK1 = 0x11, BK1 = 0x11,
BK3 = 0x13,
} }
#[derive(Copy, Clone)] #[derive(Copy, Clone)]
@ -684,7 +685,7 @@ impl BK0Command2 {
RTNI: u8, RTNI: u8,
) -> Result<Command, &'static str> { ) -> Result<Command, &'static str> {
Self::validate(CMD2, || { Self::validate(CMD2, || {
Command::new(Self::INVSET as u8).args(&[0x30 | NLINV as u8, RTNI]) Command::new(Self::INVSET as u8).args(&[NLINV as u8, RTNI])
}) })
} }