C++23 enable in CMakeLists.txt

This commit is contained in:
Daniel Brunner
2023-04-27 14:33:10 +02:00
parent 93803a93c6
commit 4c50bcd443
2 changed files with 3 additions and 1 deletions

View File

@ -38,6 +38,8 @@ idf_component_register(
${dependencies}
)
set_property(TARGET ${COMPONENT_LIB} PROPERTY CXX_STANDARD 23)
target_compile_options(${COMPONENT_TARGET}
PRIVATE
-fstack-reuse=all

View File

@ -178,7 +178,7 @@ const char * toString(wifi_err_reason_t reason)
case WIFI_REASON_AP_TSF_RESET: return "AP_TSF_RESET";
case WIFI_REASON_ROAMING: return "ROAMING";
case WIFI_REASON_ASSOC_COMEBACK_TIME_TOO_LONG: return "ASSOC_COMEBACK_TIME_TOO_LONG";
// case WIFI_REASON_SA_QUERY_TIMEOUT: return "SA_QUERY_TIMEOUT";
case WIFI_REASON_SA_QUERY_TIMEOUT: return "SA_QUERY_TIMEOUT";
}
ESP_LOGE(TAG, "unknown reason %" PRIu8, reason);