print backlight debug in hosted mode

This commit is contained in:
bunnie 2022-11-23 02:52:03 +08:00
parent 26adda2fa7
commit 749b701687

View file

@ -673,6 +673,8 @@ fn main() -> ! {
com.txrx(ComState::CHG_BOOST_ON.verb);
}
Some(Opcode::SetBackLight) => msg_scalar_unpack!(msg, main, secondary, _, _, {
#[cfg(not(target_os = "xous"))]
log::info!("HOSTED: set backlight to {},{}", main, secondary);
bl_main = main;
bl_sec = secondary;
com.txrx(ComState::BL_START.verb | (main as u16) & 0x1f | (((secondary as u16) & 0x1f) << 5));