fix controller detection

This commit is contained in:
Logan McNaughton 2023-10-12 20:32:17 -06:00
parent 4abdb0d4f8
commit 0c97320010
2 changed files with 2 additions and 4 deletions

View File

@ -16,8 +16,7 @@ pub fn process(device: &mut device::Device, channel: usize) {
let cmd = device.pif.ram[device.pif.channels[channel].tx_buf.unwrap()];
match cmd {
JCMD_RESET => { /* reset */ }
JCMD_STATUS => {
JCMD_RESET | JCMD_STATUS => {
let eeprom_type;
if device
.ui

View File

@ -32,8 +32,7 @@ pub fn process(device: &mut device::Device, channel: usize) {
let cmd = device.pif.ram[device.pif.channels[channel].tx_buf.unwrap()];
match cmd {
JCMD_RESET => { /* reset */ }
JCMD_STATUS => {
JCMD_RESET | JCMD_STATUS => {
device.pif.ram[device.pif.channels[channel].rx_buf.unwrap()] = CONT_FLAVOR as u8;
device.pif.ram[device.pif.channels[channel].rx_buf.unwrap() + 1] =
(CONT_FLAVOR >> 8) as u8;