Hello Jasem, could that be a type Problem?
the return value of bool ASICCD::activateCooler(bool enable) is of type ASI_ERROR_CODE which is more like an int type...
Especially ASI_SUCCESS should be 0 (?) which would translate to false.
That would explain as well, why I see only 1 "Failed to activate cooler." in the logs, it should be 2 entries, not from SetTemperature and one from activateCooler... .