diff --git a/src/libChiller/IChiller.h b/src/libChiller/IChiller.h index cf99afbecc6b917a3b1d73714771e07602e67dc1..3e2d2fad8e421fb35d188fc3b8a526b8f709c69e 100644 --- a/src/libChiller/IChiller.h +++ b/src/libChiller/IChiller.h @@ -25,7 +25,7 @@ class IChiller { * * \param com ICom instance for communicating with the chiller */ - void setCom(std::shared_ptr<ICom> com); + virtual void setCom(std::shared_ptr<ICom> com); //! Turn the chiller on virtual void turnOn() = 0; //! Turn the chiller off diff --git a/src/libMeter/IMeter.h b/src/libMeter/IMeter.h index c393b71b4b70e9b6116a0f73a5d4da14829536ab..61023ad012ec4294fa340ee485169ec1cdfab2c8 100644 --- a/src/libMeter/IMeter.h +++ b/src/libMeter/IMeter.h @@ -23,7 +23,7 @@ class IMeter { */ IMeter(const std::string& name, std::vector<std::string> models = {}); - void setCom(std::shared_ptr<ICom> com); + virtual void setCom(std::shared_ptr<ICom> com); /** ping the device * @param dev: index of the device to ping (if there are multiple parts diff --git a/src/libPS/IPowerSupply.h b/src/libPS/IPowerSupply.h index 1de0b2fc1519f65994afdd4858aced6d4810eb13..5b51336c68f7fed64e4d6fb5d7b12aa83a6813d4 100644 --- a/src/libPS/IPowerSupply.h +++ b/src/libPS/IPowerSupply.h @@ -53,7 +53,7 @@ class IPowerSupply { * * \param com ICom instance for communicating with the power supply */ - void setCom(std::shared_ptr<ICom> com); + virtual void setCom(std::shared_ptr<ICom> com); /** Store JSON hardware configuration * @param config JSON configuration for the given power supply only