mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
SPI: use official HW_VER_REV function
This commit is contained in:
@@ -47,7 +47,7 @@ void px4_set_spi_buses_from_hw_version()
|
|||||||
#if defined(BOARD_HAS_SIMPLE_HW_VERSIONING)
|
#if defined(BOARD_HAS_SIMPLE_HW_VERSIONING)
|
||||||
int hw_version_revision = board_get_hw_version();
|
int hw_version_revision = board_get_hw_version();
|
||||||
#else
|
#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
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user