File tree Expand file tree Collapse file tree
framework_lib/src/chromium_ec Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -638,17 +638,17 @@ impl CrosEc {
638638
639639 pub fn print_fw12_inputdeck_status ( & self ) -> EcResult < ( ) > {
640640 let intrusion = self . get_intrusion_status ( ) ?;
641- let pwrbtn = self . read_board_id ( Framework12Adc :: PowerButtonBoardId as u8 ) ?;
642- let audio = self . read_board_id ( Framework12Adc :: AudioBoardId as u8 ) ?;
643- let tp = self . read_board_id ( Framework12Adc :: TouchpadBoardId as u8 ) ?;
641+ let pwrbtn = self . read_board_id_npc_db ( Framework12Adc :: PowerButtonBoardId as u8 ) ?;
642+ let audio = self . read_board_id_npc_db ( Framework12Adc :: AudioBoardId as u8 ) ?;
643+ let tp = self . read_board_id_npc_db ( Framework12Adc :: TouchpadBoardId as u8 ) ?;
644644
645645 let is_present = |p| if p { "Present" } else { "Missing" } ;
646646
647647 println ! ( "Input Deck" ) ;
648648 println ! ( " Chassis Closed: {}" , !intrusion. currently_open) ;
649- println ! ( " Power Button Board: {}" , is_present( pwrbtn. is_some( ) ) ) ;
650- println ! ( " Audio Daughterboard: {}" , is_present( audio. is_some( ) ) ) ;
651- println ! ( " Touchpad: {}" , is_present( tp. is_some( ) ) ) ;
649+ println ! ( " Power Button Board: {} ({:?}) " , is_present( pwrbtn. is_some( ) ) , pwrbtn ) ;
650+ println ! ( " Audio Daughterboard: {} ({:?}) " , is_present( audio. is_some( ) ) , audio ) ;
651+ println ! ( " Touchpad: {} ({:?}) " , is_present( tp. is_some( ) ) , tp ) ;
652652
653653 Ok ( ( ) )
654654 }
You can’t perform that action at this time.
0 commit comments