spi: get the correct version revision

This commit is contained in:
CUAVmengxiao authored and Daniel Agar committed 2022-03-29 17:09:34 -04:00
1 parent c0d5ae2f9f
commit f540335998
1 file changed
+1 -1
+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