From db3a2a97f60c7ebf383cfa5b758efcc2193a1104 Mon Sep 17 00:00:00 2001 From: ainyan03 <205502311+ainyan03@users.noreply.github.com> Date: Fri, 9 Oct 2026 06:28:33 +0000 Subject: [PATCH] Remove the empty _check_boardtype() The last board checks it held (ESP32-P4) moved into the M5GFX board detector, leaving a private function that returned its argument on every target. --- src/M5Unified.hpp | 2 -- src/M5Unified.inl | 5 ----- 2 files changed, 7 deletions(-) diff --git a/src/M5Unified.hpp b/src/M5Unified.hpp index 5c272cf..59410e9 100644 --- a/src/M5Unified.hpp +++ b/src/M5Unified.hpp @@ -380,7 +380,6 @@ namespace m5 #endif #endif if (board == board_t::board_unknown) { board = Display.getBoardCandidate(); } - if (board == board_t::board_unknown) { board = _check_boardtype(board); } if (board == board_t::board_unknown) { board = _default_fallback_board(); } } _board = board; @@ -784,7 +783,6 @@ namespace m5 void _begin_audio(config_t& cfg); bool _begin_rtc_imu(const config_t& cfg); - board_t _check_boardtype(board_t); static board_t _default_fallback_board(void); void _setup_i2c(board_t); void _setup_led(board_t); diff --git a/src/M5Unified.inl b/src/M5Unified.inl index dc3c987..0de5e30 100644 --- a/src/M5Unified.inl +++ b/src/M5Unified.inl @@ -1621,11 +1621,6 @@ static constexpr const uint8_t _pin_table_mbus[][31] = { #endif } - board_t M5Unified::_check_boardtype(board_t board) - { - return board; - } - board_t M5Unified::_default_fallback_board(void) { // Build selection follows explicit fallback and detector candidates.