cxp fw: reading the correct host connection id

This commit is contained in:
morgan 2025-01-10 16:47:01 +08:00
parent b23c8f64cc
commit 4140468af3

View File

@ -186,7 +186,7 @@ fn negotiate_active_channels(timer: &mut GlobalTimer) -> Result<u8, Error> {
fn set_host_connection_id() -> Result<(), Error> { fn set_host_connection_id() -> Result<(), Error> {
// TODO: not mandatory?? // TODO: not mandatory??
write_u32(MASTER_CHANNEL, MASTER_HOST_CONNECTION_ID, HOST_CONNECTION_ID, false)?; write_u32(MASTER_CHANNEL, MASTER_HOST_CONNECTION_ID, HOST_CONNECTION_ID, false)?;
let reg = read_u32(MASTER_CHANNEL, CONNECTION_CFG, false)?; let reg = read_u32(MASTER_CHANNEL, MASTER_HOST_CONNECTION_ID, false)?;
info!("host connection id set as = {}", reg); info!("host connection id set as = {}", reg);
Ok(()) Ok(())
} }