SPI: use official HW_VER_REV function

This commit is contained in:
tanja 2022-11-07 10:00:21 +01:00 committed by Beat Küng
parent 6df2b68d72
commit 2eed5306c0
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ void px4_set_spi_buses_from_hw_version()
#if defined(BOARD_HAS_SIMPLE_HW_VERSIONING)
int hw_version_revision = board_get_hw_version();
#else
int hw_version_revision = (board_get_hw_version() << 16) | board_get_hw_revision();
int hw_version_revision = HW_VER_REV(board_get_hw_version(), board_get_hw_revision());
#endif