Skip to content

Commit eec53f0

Browse files
committed
Log some additional information on invalid parameters
1 parent 0729487 commit eec53f0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

source/ButtonComboManager.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,10 +595,12 @@ ButtonComboModule_Error ButtonComboManager::DetectButtonCombo_Blocking(const But
595595
std::lock_guard lock(mMutex);
596596

597597
if (options.controllerMask == BUTTON_COMBO_MODULE_CONTROLLER_NONE) {
598+
DEBUG_FUNCTION_LINE_WARN("Failed to detect button combo: Controller Mask was empty.");
598599
return BUTTON_COMBO_MODULE_ERROR_INVALID_ARGUMENT;
599600
}
600601

601602
if (options.holdComboForInMs == 0 || options.holdAbortForInMs == 0 || options.abortButtonCombo == 0) {
603+
DEBUG_FUNCTION_LINE_WARN("Failed to detect button combo: Invalid params. holdComboFor: %s ms, holdAbortFor: %d ms, abortButtonCombo: %08X", options.holdComboForInMs, options.holdAbortForInMs, options.abortButtonCombo);
602604
return BUTTON_COMBO_MODULE_ERROR_INVALID_ARGUMENT;
603605
}
604606

0 commit comments

Comments
 (0)