From 61b258b3f695f40764852c58f96bd6b9a02ebad9 Mon Sep 17 00:00:00 2001 From: massout Date: Sat, 29 Nov 2025 12:17:23 +0300 Subject: [PATCH] AP_HAL_Linux: Correcting soc filename size in file detection. --- libraries/AP_HAL_Linux/Util_RPI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_HAL_Linux/Util_RPI.cpp b/libraries/AP_HAL_Linux/Util_RPI.cpp index 99dcfdac30ffd..541a5aba37208 100644 --- a/libraries/AP_HAL_Linux/Util_RPI.cpp +++ b/libraries/AP_HAL_Linux/Util_RPI.cpp @@ -59,7 +59,7 @@ void UtilRPI::_get_board_type_using_peripheral_base() char ranges_path[256] {}; while ((entry = readdir(dir)) != nullptr) { - if (strncmp(entry->d_name, "soc", 4) == 0) { + if (strncmp(entry->d_name, "soc", 3) == 0) { snprintf(ranges_path, sizeof(ranges_path), "%s/%s/ranges", base_path, entry->d_name); break; }