From f54033599833b8060a442ec271aeb2dc8307f963 Mon Sep 17 00:00:00 2001 From: CUAVmengxiao Date: Thu, 24 Mar 2022 18:12:56 +0800 Subject: [PATCH] spi: get the correct version revision --- platforms/common/spi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platforms/common/spi.cpp b/platforms/common/spi.cpp index 6a571c9b28..acce069ea3 100644 --- a/platforms/common/spi.cpp +++ b/platforms/common/spi.cpp @@ -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