spi: get the correct version revision

This commit is contained in:
CUAVmengxiao
2022-03-24 18:12:56 +08:00
committed by Daniel Agar
parent c0d5ae2f9f
commit f540335998
+1 -1
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_revision();
int hw_version_revision = (board_get_hw_version() << 8) | board_get_hw_revision();
#endif