Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,11 @@ if(ANSI_CODES_DISABLED)
endif()

if(ASB)
message(STATUS "ASB is ENABLED")
add_compile_definitions(ASB)
target_link_libraries(controlMgr ${ASB_LIBS})
else()
message(STATUS "ASB is NOT ENABLED")
endif()

if(ASSERT_ON_WRONG_THREAD)
Expand Down
4 changes: 3 additions & 1 deletion src/ctrlm_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2798,11 +2798,13 @@ gpointer ctrlm_main_thread(gpointer param) {

if(settings->available & CTRLM_MAIN_CONTROL_SERVICE_SETTINGS_ASB_ENABLED) {
#ifdef ASB
// Write new asb_enabled flag to NVM
#error ASB_ENABLED
// Write new asb_enabled flag to NVM
ctrlm_db_asb_enabled_write(&settings->asb_enabled, CTRLM_ASB_ENABLED_LEN);
g_ctrlm.cs_values.asb_enable = settings->asb_enabled;
XLOGD_INFO("ASB Enabled Set Values <%s>", g_ctrlm.cs_values.asb_enable ? "true" : "false");
#else
#error ASB_NOT_ENABLED
XLOGD_INFO("ASB Enabled Set Values <false>, ASB Not Supported");
#endif
}
Expand Down