diff --git a/slsDetectorSoftware/src/Module.cpp b/slsDetectorSoftware/src/Module.cpp index a8d66ed60..4c487d6a6 100644 --- a/slsDetectorSoftware/src/Module.cpp +++ b/slsDetectorSoftware/src/Module.cpp @@ -196,7 +196,7 @@ void Module::setSettings(detectorSettings isettings) { "Cannot set settings for Eiger. Use threshold energy."); } sendToDetector(F_SET_SETTINGS, isettings); - updateRxAllThresholdMetadata(); + updateRxThresholdEnergyMetadata(); } int Module::getThresholdEnergy() const { @@ -417,7 +417,7 @@ void Module::setAllThresholdEnergy(std::array e_eV, } } -void Module::updateRxAllThresholdMetadata() { +void Module::updateRxThresholdEnergyMetadata() { if (shm()->useReceiverFlag) { if (shm()->detType == MYTHEN3) { auto e_eV = getAllThresholdEnergy(); @@ -483,7 +483,7 @@ int Module::getAllTrimbits() const { void Module::setAllTrimbits(int val) { sendToDetector(F_SET_ALL_TRIMBITS, val); - updateRxAllThresholdMetadata(); + updateRxThresholdEnergyMetadata(); } std::vector Module::getTrimEn() const { @@ -791,7 +791,7 @@ void Module::setDAC(int val, dacIndex index, bool mV) { } int args[]{static_cast(index), static_cast(mV), val}; sendToDetector(F_SET_DAC, args); - updateRxAllThresholdMetadata(); + updateRxThresholdEnergyMetadata(); } bool Module::getPowerChip() const { @@ -3560,7 +3560,7 @@ void Module::setModule(sls_detector_module &module, bool trimbits) { client.sendCommand(F_SET_MODULE, nullptr, 0); sendModule(&module, client); client.readReply(nullptr, 0); - updateRxAllThresholdMetadata(); + updateRxThresholdEnergyMetadata(); } sls_detector_module Module::getModule() { diff --git a/slsDetectorSoftware/src/Module.h b/slsDetectorSoftware/src/Module.h index 1c22fa3f2..49d7812ac 100644 --- a/slsDetectorSoftware/src/Module.h +++ b/slsDetectorSoftware/src/Module.h @@ -111,7 +111,7 @@ class Module : public virtual slsDetectorDefs { void setAllThresholdEnergy(std::array e_eV, detectorSettings isettings, bool trimbits); std::string getSettingsDir() const; - void updateRxAllThresholdMetadata(); + void updateRxThresholdEnergyMetadata(); std::string setSettingsDir(const std::string &dir); void loadTrimbits(const std::string &fname); void saveTrimbits(const std::string &fname);