Skip to content

Commit 878250a

Browse files
committed
WIP: use board ID host command if available
Signed-off-by: Daniel Schaefer <[email protected]>
1 parent 4eb5d07 commit 878250a

File tree

1 file changed

+2
-0
lines changed
  • framework_lib/src/chromium_ec

1 file changed

+2
-0
lines changed

framework_lib/src/chromium_ec/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1684,6 +1684,8 @@ impl CrosEc {
16841684
}
16851685

16861686
fn read_board_id(&self, channel: u8) -> EcResult<Option<u8>> {
1687+
// TODO: This change the parmeter to BoardIdType and map that to ADC if needed
1688+
// if ec.cmd_version_supported(command::EcCommands::ReadBoardId, 0) == Ok(true) {
16871689
self.read_board_id_raw(channel, BOARD_VERSION)
16881690
}
16891691
fn read_board_id_npc_db(&self, channel: u8) -> EcResult<Option<u8>> {

0 commit comments

Comments
 (0)