Skip to content

Commit 8634eee

Browse files
committed
WIP: use board ID host command if available
Signed-off-by: Daniel Schaefer <[email protected]>
1 parent e822af3 commit 8634eee

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
@@ -1616,6 +1616,8 @@ impl CrosEc {
16161616
}
16171617

16181618
fn read_board_id(&self, channel: u8) -> EcResult<Option<u8>> {
1619+
// TODO: This change the parmeter to BoardIdType and map that to ADC if needed
1620+
// if ec.cmd_version_supported(command::EcCommands::ReadBoardId, 0) == Ok(true) {
16191621
self.read_board_id_raw(channel, BOARD_VERSION)
16201622
}
16211623
fn read_board_id_npc_db(&self, channel: u8) -> EcResult<Option<u8>> {

0 commit comments

Comments
 (0)